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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583927
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x5d406c]
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.005117a5
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.00405d60
mov byte [ebp - 4], 2
call fcn.00450dd0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.00450710
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x404158
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407050
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.00405e60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0044d970
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmp eax, esi
je 0x4041e2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4041c5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407050
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.004060b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4041fb
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407050
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.0041b110
xor edx, edx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00419d30
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.0041bbe0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x404270
push 0xffffffffffffffff
push 0
push eax
call fcn.00405e60
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x404289
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407050
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 0x404535
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 0x404301
xor eax, eax
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x88], ax
jmp 0x40430e
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00405d60
push 1
push 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
lea ecx, [ebp - 0x88]
call fcn.00412fd0
cmp eax, 0xffffffff
je 0x404341
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x88]
call fcn.00406900
sub esp, 8
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x88]
mov dword [eax], 0x5bd7b4
mov dword [eax + 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.0041bbe0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x404385
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00407050
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00419330
call fcn.004037a0
sub esp, 8
mov esi, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xb8], ecx
push 0
call fcn.0041a820
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.004e066a
add esp, 0x10
test al, al
je 0x404593
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.00417a40
add esp, 4
test al, al
je 0x4044cb
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x70]
call fcn.0044d4e0
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.004200e0
add esp, 0x10
test eax, eax
je 0x40449e
lea ecx, [ebp - 0x70]
call fcn.00419330
jmp 0x4044a0
xor bl, bl
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x4044b9
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004067d0
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 0x4044ed
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004067d0
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 0x404521
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407050
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test bl, bl
je 0x404631
lea ecx, [ebp - 0x70]
call fcn.00419330
call fcn.004037a0
sub esp, 8
mov esi, eax
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov dword [ebp - 0xa8], ecx
push 0
call fcn.0041a820
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.004e066a
add esp, 0x10
test al, al
je 0x404600
inc edi
cmp edi, 3
jb 0x4042a1
jmp 0x4046c9
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.00406180
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 9
call fcn.0044b700
mov dword [ebp - 4], 5
add esp, 0x18
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4045e7
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407050
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x4046c9
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.00406180
mov byte [ebp - 4], 0x12
jmp 0x4046b6
cmp dword [ebp - 0x5c], 8
lea esi, [ebp - 0x70]
mov edi, dword [ebp - 0xb0]
mov ecx, edi
cmovae esi, dword [ebp - 0x70]
call fcn.004e3ad4
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 0x40473a
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.00406180
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 5
call fcn.0044b700
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.00406180
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 5
call fcn.0044b700
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.00406180
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 5
call fcn.0044b700
add esp, 0x18
push 0
call fcn.005332d8
push str.uidef:xml_init
push dword [ebp - 0xac]
lea ecx, [edi + 0x10]
call fcn.004e21a2
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x404766
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00407050
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 0x404792
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407050
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 0x4047bc
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.004a0111
mov esp, ebp
pop ebp
ret