Function at 0x4289a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af101
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4caef0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2710
jne 0x428d34
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx + 0x148], 0x62
jl 0x428cee
lea ecx, [ebp - 0x14]
call fcn.0040a290
mov dword [ebp - 4], 0
mov ecx, 0x4d57c8
call fcn.0041b490
mov edx, dword [eax]
push edx
push 0x4bdd24
lea eax, [ebp - 0x14]
push eax
call fcn.004140a0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x7c]
add ecx, 4
call fcn.0041d180
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x224]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
je 0x428a51
cmp dword [ebp - 0x18], 0
je 0x428a51
cmp dword [ebp - 0x18], 1
je 0x428a51
call fcn.00427c90
test eax, eax
jne 0x428a66
mov ecx, dword [ebp - 0x7c]
call fcn.0040a8f0
mov ecx, dword [ebp - 0x7c]
call fcn.00429330
jmp 0x428cdf
cmp dword [ebp - 0x18], 5
jne 0x428c0b
push 0x64
mov ecx, dword [ebp - 0x7c]
add ecx, 0xd8
call fcn.00425c80
mov ecx, dword [ebp - 0x7c]
call fcn.0040a8f0
call fcn.004284a0
test eax, eax
je 0x428a9e
mov ecx, dword [ebp - 0x7c]
call fcn.00429110
jmp 0x428c06
mov ecx, 0x4d57c8
call fcn.00416060
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a2b0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
push 0x4bdd40
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.004350a0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
call fcn.0040a8b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x2c]
call fcn.0040a350
cmp dword [ebp - 0x28], 0
je 0x428b5e
push 0xe40
call fcn.00496492
add esp, 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0
je 0x428b3f
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x20]
push eax
call fcn.0040a2b0
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x34]
call fcn.00429dc0
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
jmp 0x428b49
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
jmp 0x428ba5
push 0xe40
call fcn.00496492
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x40], 0
je 0x428b88
mov ecx, dword [ebp - 0x40]
call fcn.00429910
mov dword [ebp - 0x90], eax
jmp 0x428b92
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], edx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0
call fcn.0041cbf0
push 0
push 0x90080000
lea ecx, [ebp - 0x14]
call fcn.0040a8b0
push eax
push 0x64
push 0x190
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.00401fb0
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push eax
call fcn.0041cbf0
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.00436600
push 5
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.0041b200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0040a350
jmp 0x428cdf
cmp dword [ebp - 0x18], 2
jne 0x428cdf
push 0x64
mov ecx, dword [ebp - 0x7c]
add ecx, 0xd8
call fcn.00425c80
mov ecx, dword [ebp - 0x7c]
call fcn.0040a8f0
call fcn.004284a0
test eax, eax
je 0x428c43
mov ecx, dword [ebp - 0x7c]
call fcn.00429110
jmp 0x428cdf
push 0xe40
call fcn.00496492
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x60], 0
je 0x428c6d
mov ecx, dword [ebp - 0x60]
call fcn.00429910
mov dword [ebp - 0x94], eax
jmp 0x428c77
mov dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x24], ecx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0
call fcn.0041cbf0
push 0
push 0x90080000
lea ecx, [ebp - 0x14]
call fcn.0040a8b0
push eax
push 0x64
push 0x190
push 0
push 0
lea ecx, [ebp - 0x78]
call fcn.00401fb0
push ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push eax
call fcn.0041cbf0
push 0
mov ecx, dword [ebp - 0x24]
call fcn.00436600
push 5
mov ecx, dword [ebp - 0x24]
add ecx, 4
call fcn.0041b200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040a350
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x148]
add eax, 2
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x148], eax
mov edx, dword [ebp - 0x7c]
cmp dword [edx + 0x148], 0x62
jle 0x428d1c
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0x148], 0x62
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x148]
push edx
mov ecx, dword [ebp - 0x7c]
add ecx, 0xd8
call fcn.00425c80
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10