Function at 0x401160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be20b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
mov ecx, dword [ebp + 8]
call fcn.00426b70
test eax, eax
je 0x4011ad
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00426b70
test eax, eax
jne 0x4011b4
xor eax, eax
jmp 0x40143b
lea esi, [ebp - 0x23c]
call fcn.00488150
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00401cb0
push eax
mov esi, 2
lea eax, [ebp - 0x23c]
call fcn.00488210
test eax, eax
jge 0x40120a
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x240]
jmp 0x40143b
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00426b70
test eax, eax
jbe 0x40125c
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00401cb0
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.00488520
test eax, eax
jge 0x40125c
mov dword [ebp - 0x244], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x244]
jmp 0x40143b
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.00426b70
test eax, eax
jbe 0x4012ae
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.00401cb0
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.00488310
test eax, eax
jge 0x4012ae
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x248]
jmp 0x40143b
mov edx, str.wmo
lea ecx, [ebp - 0x23c]
call fcn.004883c0
test eax, eax
jge 0x4012e9
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x24c]
jmp 0x40143b
mov ecx, dword [ebp + 8]
add ecx, 0x70
call fcn.00426b70
test eax, eax
jbe 0x40133b
mov ecx, dword [ebp + 8]
add ecx, 0x70
call fcn.00401cb0
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.004885d0
test eax, eax
jge 0x40133b
mov dword [ebp - 0x250], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x250]
jmp 0x40143b
mov ecx, dword [ebp + 8]
add ecx, 0x54
call fcn.00426b70
test eax, eax
jbe 0x4013af
mov ecx, dword [ebp + 8]
add ecx, 0x54
call fcn.00401cb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4013af
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x8c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x54
call fcn.00401cb0
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.00488470
test eax, eax
jge 0x4013ad
mov dword [ebp - 0x254], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x254]
jmp 0x40143b
jmp 0x4013e6
push 0
xor edx, edx
lea ecx, [ebp - 0x23c]
call fcn.00488470
test eax, eax
jge 0x4013e6
mov dword [ebp - 0x258], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x258]
jmp 0x40143b
lea esi, [ebp - 0x23c]
call fcn.00488680
test eax, eax
jge 0x401419
mov dword [ebp - 0x25c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x25c]
jmp 0x40143b
mov dword [ebp - 0x260], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004881b0
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret 4