Function at 0x4044a0
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584cb8
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5d4074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc4], 0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push eax
call fcn.00511efd
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
add esp, 4
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push str.INSTDOWNLOADDIR
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.00406650
mov byte [ebp - 4], 2
call fcn.00451ac0
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.00451400
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404578
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
sub esp, 0x18
mov dword [ebp - 0x14], 7
mov ecx, esp
mov dword [ebp - 0xa4], esp
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push eax
mov word [ecx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.00406750
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0044e660
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
cmp eax, esi
je 0x404602
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4045e5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x2c], 7
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004069a0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40461b
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x5c], 7
sub esp, 8
mov word [ebp - 0x70], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x60], 0
cmovae eax, dword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x88]
call fcn.0041ba00
xor edx, edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
call fcn.0041a620
sub esp, 8
lea ecx, [ebp - 0x88]
mov eax, esp
mov dword [eax], str.skintemp.zip
mov dword [eax + 4], 0xc
lea eax, [ebp - 0x70]
push eax
call fcn.0041c4d0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x40469c
push 0xffffffffffffffff
push 0
push eax
call fcn.00406750
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x4046b5
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov bl, 1
mov word [ebp - 0x70], ax
xor edi, edi
nop dword [eax]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40495b
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x90], 0
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [ebp - 0xa0], cx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
test ecx, ecx
jne 0x404745
xor eax, eax
mov dword [ebp - 0x90], ecx
mov word [ebp - 0xa0], ax
jmp 0x404752
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00406650
push 1
push 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
lea ecx, [ebp - 0xa0]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x404785
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0xa0]
call fcn.004071f0
sub esp, 8
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0xa0]
mov dword [eax], 0x5bd414
mov dword [eax + 4], 3
lea eax, [ebp - 0x28]
push eax
call fcn.0041c4d0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x4047cc
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x8c], 7
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
call fcn.00419c20
call fcn.00403bf0
sub esp, 8
mov esi, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xd0], ecx
push 0
call fcn.0041b110
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
push eax
mov byte [ebp - 4], 9
call fcn.0049d3a6
add esp, 0x10
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
test al, al
je 0x4049c3
push 0xffffffffffffffff
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.00418330
add esp, 4
test al, al
je 0x404903
cmp dword [ebp - 0x74], 8
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x70]
cmovae edx, dword [ebp - 0x88]
call fcn.0044e1d0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x70]
sub esp, 8
cmp dword [ebp - 0x5c], 0x10
mov ecx, esp
cmovae eax, dword [ebp - 0x70]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0x60]
mov dword [ecx + 4], eax
mov ecx, esp
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 4], eax
call fcn.004209d0
add esp, 0x10
test eax, eax
je 0x4048d6
lea ecx, [ebp - 0x88]
call fcn.00419c20
jmp 0x4048d8
xor bl, bl
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x4048f1
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004070c0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40491c
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004070c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x404947
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test bl, bl
je 0x404aed
lea ecx, [ebp - 0x88]
call fcn.00419c20
call fcn.00403bf0
sub esp, 8
mov esi, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xc0], ecx
push 0
call fcn.0041b110
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x12
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.0049d3a6
add esp, 0x10
test al, al
je 0x404a6f
inc edi
cmp edi, 3
jb 0x4046d0
jmp 0x404c09
push 0xf
push str.get_k_skin_fail
lea ecx, [ebp - 0x58]
call fcn.00406a70
sub esp, 0x18
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0x58]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
call fcn.0044c390
mov byte [ebp - 4], 9
add esp, 0x18
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x404a28
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004070c0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x404a56
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x404c09
push 0xf
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], 0
push str.get_k_skin_fail
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
call fcn.00406a70
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0xbc]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x13
jmp 0x404bbd
cmp dword [ebp - 0x74], 8
lea esi, [ebp - 0x88]
mov edi, dword [ebp - 0xc8]
mov ecx, edi
cmovae esi, dword [ebp - 0x88]
call fcn.004e40e5
mov ecx, dword [ebp - 0xc4]
lea edx, [ebp - 0xec]
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xd8], 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0xc]
test eax, eax
jne 0x404d65
push 0xf
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], eax
push str.get_k_skin_fail
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xbc], al
call fcn.00406a70
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0xbc]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
call fcn.0044c390
mov byte [ebp - 4], 5
add esp, 0x18
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
jb 0x404be7
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.004070c0
mov dword [ebp - 4], 5
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
push 5
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], 0
push str.KbEnd
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
call fcn.00406a70
sub esp, 0x18
mov byte [ebp - 4], 0x19
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0xbc]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x19
call fcn.0044c390
mov byte [ebp - 4], 5
add esp, 0x18
mov eax, dword [ebp - 0xa8]
cmp eax, 0x10
jb 0x404cac
inc eax
lea ecx, [ebp - 0xbc]
push eax
push dword [ebp - 0xbc]
call fcn.004070c0
push 0x10
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push str.EndUpdateInstall
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00406a70
sub esp, 0x18
mov byte [ebp - 4], 0x1b
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406b70
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x1b
call fcn.0044c390
mov byte [ebp - 4], 5
add esp, 0x18
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x404d4c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004070c0
push 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.005316d9
push str.uidef:xml_init
push dword [ebp - 0xc4]
lea ecx, [edi + 0x10]
call fcn.004e286a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x404d97
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov dword [ebp - 0x78], 0
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x404dc6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407940
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
je 0x404df0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0c7f
mov esp, ebp
pop ebp
ret