Function at 0x4f53f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a5f9
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.004f5140
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004048a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4f54ae
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0xac]
call fcn.004f5320
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa8]
or eax, 1
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0056f630
add esp, 8
movzx eax, al
test eax, eax
je 0x4f54ae
mov dword [ebp - 0xb8], 1
jmp 0x4f54b8
mov dword [ebp - 0xb8], 0
mov cl, byte [ebp - 0xb8]
mov byte [ebp - 0x2d], cl
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0xa8]
and edx, 1
je 0x4f54e2
and dword [ebp - 0xa8], 0xfffffffe
lea ecx, [ebp - 0x4c]
call fcn.00404950
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x4f551c
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xac]
call fcn.004f52e0
mov edx, dword [ebp - 0xa8]
or edx, 2
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404950
mov eax, dword [ebp + 8]
jmp 0x4f56b0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.005608c0
add esp, 8
movzx edx, al
test edx, edx
je 0x4f55d0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.004f5320
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xa8]
or edx, 4
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0056f630
add esp, 8
movzx edx, al
test edx, edx
je 0x4f55d0
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0xac]
call fcn.004f52e0
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0xa8]
or edx, 8
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
jmp 0x4f5614
push 0x59c395
lea ecx, [ebp - 0xa4]
call fcn.00405220
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0xa8]
or edx, 0x10
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404910
mov eax, dword [ebp - 0xa8]
or eax, 2
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0xa8]
and ecx, 0x10
je 0x4f565c
and dword [ebp - 0xa8], 0xffffffef
lea ecx, [ebp - 0xa4]
call fcn.00404950
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0xa8]
and edx, 8
je 0x4f5680
and dword [ebp - 0xa8], 0xfffffff7
lea ecx, [ebp - 0x88]
call fcn.00404950
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xa8]
and eax, 4
je 0x4f56a1
and dword [ebp - 0xa8], 0xfffffffb
lea ecx, [ebp - 0x6c]
call fcn.00404950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404950
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret 4