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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9901
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x64106c]
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 - 0xac], ecx
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa8], 0
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
push eax
call fcn.004f89b9
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.00405a70
mov byte [ebp - 4], 2
call fcn.0044e700
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0044e130
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x403f08
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406d90
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.00405b70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0044b3e0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmp eax, esi
je 0x403f92
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x403f75
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406d90
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.00405dc0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x403fab
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00406d90
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.00419a20
xor edx, edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00418990
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.0041a1d0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x404020
push 0xffffffffffffffff
push 0
push eax
call fcn.00405b70
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x404039
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00406d90
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
mov dword [ebp - 0x44], 7
mov bl, 1
mov dword [ebp - 0x48], 0
xor esi, esi
mov word [ebp - 0x58], ax
nop word [eax + eax]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call edi
cmp eax, 0xffffffff
je 0x4042ea
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 0x4040bc
xor eax, eax
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x88], ax
jmp 0x4040c9
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00405a70
push 1
push 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
lea ecx, [ebp - 0x88]
call fcn.0041b320
cmp eax, 0xffffffff
je 0x4040fc
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x88]
call fcn.00406620
sub esp, 8
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x88]
mov dword [eax], 0x61e5b0
mov dword [eax + 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.0041a1d0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x404140
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00417f70
call fcn.00403670
sub esp, 0x28
mov edx, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ecx + 0x24], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push eax
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x28]
push eax
mov byte [ebp - 4], 9
call fcn.004c7d40
add esp, 0x30
test al, al
je 0x404342
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], 0xb
lea ecx, [ebp - 0x40]
call fcn.00416590
add esp, 4
test al, al
je 0x404280
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x70]
call fcn.0044af50
mov byte [ebp - 4], 0xc
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.0041e530
add esp, 0x10
test eax, eax
je 0x404253
lea ecx, [ebp - 0x70]
call fcn.00417f70
jmp 0x404255
xor bl, bl
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40426e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004064e0
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 0x4042a2
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004064e0
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 0x4042d6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test bl, bl
je 0x4043e0
lea ecx, [ebp - 0x70]
call fcn.00417f70
call fcn.00403670
sub esp, 0x28
mov edx, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ecx + 0x24], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xf
push eax
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.004c7d40
add esp, 0x30
test al, al
je 0x4043af
inc esi
cmp esi, 3
jb 0x404060
jmp 0x404478
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], 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.00405e90
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 9
call fcn.00449590
mov dword [ebp - 4], 5
add esp, 0x18
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x404396
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406d90
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x404478
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], 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.00405e90
mov byte [ebp - 4], 0x10
jmp 0x404465
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
mov edi, dword [ebp - 0xac]
mov ecx, edi
cmovae esi, dword [ebp - 0x70]
call fcn.004cb082
mov ecx, dword [ebp - 0xa8]
lea edx, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xb8], 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0xc]
test eax, eax
jne 0x4044e9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], 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.00405e90
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 5
call fcn.00449590
mov dword [ebp - 4], 5
add esp, 0x18
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 5
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.KbEnd
mov byte [ecx], 0
call fcn.00405e90
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 5
call fcn.00449590
mov ecx, esp
mov dword [ebp - 0xb0], esp
push 0x10
push str.EndUpdateInstall
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00405e90
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 5
call fcn.00449590
add esp, 0x18
push 0
call fcn.0050e351
push str.uidef:xml_init
push dword [ebp - 0xa8]
lea ecx, [edi + 0x10]
call fcn.004c9828
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x404515
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00406d90
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 0x404541
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406d90
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 - 0xa8]
test ecx, ecx
je 0x40456b
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.004c21c3
mov esp, ebp
pop ebp
ret