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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566cf7
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x5b906c]
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 - 0xb0], ecx
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xac]
mov dword [ebp - 4], 0
push eax
call fcn.004f5f90
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
add esp, 4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 0xf
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push str.INSTDOWNLOADDIR
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00405cb0
mov byte [ebp - 4], 2
call fcn.00450310
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0044fc50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4040f8
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406fa0
sub esp, 0x18
mov dword [ebp - 0x2c], 7
mov ecx, esp
mov dword [ebp - 0xa4], esp
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00405db0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0044ceb0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmp eax, esi
je 0x404182
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404165
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00406000
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40419b
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x44], 7
sub esp, 8
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x70]
call fcn.0041ab60
xor edx, edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00419780
sub esp, 8
lea ecx, [ebp - 0x70]
mov eax, esp
mov dword [eax], str.skintemp.zip
mov dword [eax + 4], 0xc
lea eax, [ebp - 0x58]
push eax
call fcn.0041b650
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x404210
push 0xffffffffffffffff
push 0
push eax
call fcn.00405db0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x404229
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov bl, 1
mov word [ebp - 0x58], ax
xor edi, edi
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4044d5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x78], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [ebp - 0x88], cx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
test ecx, ecx
jne 0x4042a1
xor eax, eax
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x88], ax
jmp 0x4042ae
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00405cb0
push 1
push 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
lea ecx, [ebp - 0x88]
call fcn.00412c20
cmp eax, 0xffffffff
je 0x4042e1
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x88]
call fcn.00406850
sub esp, 8
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x88]
mov dword [eax], 0x5a1b9c
mov dword [eax + 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.0041b650
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x404325
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00418d80
call fcn.00403740
sub esp, 8
mov esi, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xb8], ecx
push 0
call fcn.0041a270
lea eax, [ebp - 0x40]
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.004c4e22
add esp, 0x10
test al, al
je 0x404533
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
push 0xffffffffffffffff
lea edx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call fcn.004175c0
add esp, 4
test al, al
je 0x40446b
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x70]
call fcn.0044ca20
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x58]
sub esp, 8
cmp dword [ebp - 0x44], 0x10
mov ecx, esp
cmovae eax, dword [ebp - 0x58]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 4], eax
mov ecx, esp
cmp dword [ebp - 0x8c], 0x10
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x90]
mov dword [ecx + 4], eax
call fcn.0041f820
add esp, 0x10
test eax, eax
je 0x40443e
lea ecx, [ebp - 0x70]
call fcn.00418d80
jmp 0x404440
xor bl, bl
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x404459
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00406720
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40448d
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00406720
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 8
jb 0x4044c1
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test bl, bl
je 0x4045d1
lea ecx, [ebp - 0x70]
call fcn.00418d80
call fcn.00403740
sub esp, 8
mov esi, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xa8], ecx
push 0
call fcn.0041a270
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x11
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.004c4e22
add esp, 0x10
test al, al
je 0x4045a0
inc edi
cmp edi, 3
jb 0x404241
jmp 0x404669
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0xf
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.get_k_skin_fail
mov byte [ecx], 0
call fcn.004060d0
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 9
call fcn.0044ac40
mov dword [ebp - 4], 5
add esp, 0x18
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x404587
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x404669
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0xf
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.get_k_skin_fail
mov byte [ecx], 0
call fcn.004060d0
mov byte [ebp - 4], 0x12
jmp 0x404656
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
mov edi, dword [ebp - 0xb0]
mov ecx, edi
cmovae esi, dword [ebp - 0x70]
call fcn.004c80e9
mov ecx, dword [ebp - 0xac]
lea edx, [ebp - 0xd4]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0xc]
test eax, eax
jne 0x4046da
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0xf
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], eax
push str.get_k_skin_fail
mov byte [ecx], al
call fcn.004060d0
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 5
call fcn.0044ac40
mov dword [ebp - 4], 5
add esp, 0x18
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 5
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.KbEnd
mov byte [ecx], 0
call fcn.004060d0
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 5
call fcn.0044ac40
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x10
push str.EndUpdateInstall
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004060d0
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 5
call fcn.0044ac40
add esp, 0x18
push 0
call fcn.00517eec
push str.uidef:xml_init
push dword [ebp - 0xac]
lea ecx, [edi + 0x10]
call fcn.004c6862
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x404706
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404732
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xac]
test ecx, ecx
je 0x40475c
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.00484900
mov esp, ebp
pop ebp
ret