Function at 0x420920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x54b687
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x120]
lea edx, [esp + 0x220]
mov eax, dword [ebp + 0x80]
push ecx
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0051d13a
mov eax, dword [0x5b5ecc]
add esp, 0x14
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x598a7c
push eax
mov dword [esp + 0x338], 0
call fcn.0053091a
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4209c0
mov edx, dword [esp + 0xc]
push 1
push edx
call fcn.0044a970
add esp, 8
test eax, eax
jne 0x420ae9
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [0x5bb3b0]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x334], 1
call fcn.0053091a
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 4
push 0x597f08
push ecx
mov ecx, ebp
call fcn.00535af8
cmp eax, 6
jne 0x420b96
mov edx, dword [esp + 0xc]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov cl, byte [ecx + edx - 1]
cmp cl, 0x5c
je 0x420a2c
push 0x5c
lea ecx, [esp + 0x10]
call fcn.00537f07
push 3
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
je 0x420ad8
lea edx, [esp + 0x18]
push esi
push edx
lea ecx, [esp + 0x14]
call fcn.005304fa
mov eax, dword [eax]
push 1
push eax
mov byte [esp + 0x330], 2
call fcn.0044a970
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
mov byte [esp + 0x328], 1
call fcn.00537b04
test bl, bl
je 0x420ac0
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.005304fa
mov eax, dword [eax]
push 1
push eax
mov byte [esp + 0x330], 3
call fcn.0044aa70
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
mov byte [esp + 0x328], 1
call fcn.00537b04
test bl, bl
jne 0x420b1a
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.00537fd9
mov esi, eax
cmp esi, 0xffffffff
jne 0x420a44
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0
call fcn.00537b04
lea ecx, [esp + 0xc]
mov dword [esp + 0x328], 0xffffffff
call fcn.00537b04
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x314]
mov dword fs:[0], ecx
add esp, 0x320
ret
mov ecx, dword [0x5b5ecc]
mov dword [esp + 0x10], ecx
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push 0x400
mov byte [esp + 0x338], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x5bb3ac]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0053091a
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push 0x30
push 0x597f08
push ecx
mov ecx, ebp
call fcn.00535af8
lea ecx, [esp + 0x10]
mov byte [esp + 0x328], 1
call fcn.00537b04
lea ecx, [esp + 0x14]
mov byte [esp + 0x328], 0
call fcn.00537b04
lea ecx, [esp + 0xc]
mov dword [esp + 0x328], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x320]
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x320
ret