Function at 0x420b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4430b8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4511b0]
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 - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c4
call fcn.0040b920
movzx eax, al
test eax, eax
jne 0x420bd4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 1
je 0x420ba8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 3
jne 0x420bd4
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c4
call fcn.004063b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x420bd4
push 0x4466be
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c4
call fcn.004061c0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c4
call fcn.0040b920
movzx eax, al
test eax, eax
je 0x420e1d
mov dword [ebp - 0x18], 0
push 0x4466be
lea ecx, [ebp - 0x34]
call fcn.00405ff0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x90], esp
push 0x448df0
call fcn.00405ff0
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x14]
call fcn.004216b0
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x420c91
mov eax, dword [ebp - 0x14]
add eax, 0x1c4
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x8c], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00405ef0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00420a20
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x420c91
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x1c0], ecx
jmp 0x420e0e
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x88], esp
push 0x448dec
call fcn.00405ff0
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x14]
call fcn.004216b0
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x420d1a
mov eax, dword [ebp - 0x14]
add eax, 0x1c4
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x84], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00405ef0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00420a20
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x420d1a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x1c0], ecx
jmp 0x420e0e
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x80], esp
push 0x448de8
call fcn.00405ff0
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x14]
call fcn.004216b0
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x420d9a
mov eax, dword [ebp - 0x14]
add eax, 0x1c4
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x7c], esp
lea edx, [ebp - 0x34]
push edx
call fcn.00405ef0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00420a20
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x420d9a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x1c0], ecx
jmp 0x420e0e
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c4
call fcn.0040b920
movzx eax, al
test eax, eax
je 0x420e06
mov eax, dword [ebp - 0x14]
add eax, 0x1c4
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x80
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x78], esp
push ecx
mov ecx, edx
call fcn.00405ef0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x40]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00420a20
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x420e06
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x1c0], edx
jmp 0x420e0e
xor eax, eax
jne 0x420c08
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406130
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c4
call fcn.0040b920
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
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.0042a65e
mov esp, ebp
pop ebp
ret