Function at 0x403330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d307
mov eax, dword fs:[0]
push eax
sub esp, 0xc70
mov eax, dword [0x425090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc64], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x403566
cmp dword [ebp + 0x10], 0
je 0x403561
push 4
push str.file
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040e249
add esp, 0xc
test eax, eax
jne 0x403561
lea ecx, [ebp - 0x818]
call fcn.00406aa0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
call fcn.00401930
add esp, 4
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x820]
push eax
push 0x42163c
lea ecx, [ebp - 0x818]
push ecx
call fcn.0040a6f0
add esp, 0xc
mov edx, dword [ebp - 0x820]
push edx
call fcn.0040a7d0
add esp, 4
lea eax, [ebp - 0x818]
push eax
call fcn.00401a90
add esp, 4
push 0x4218ce
push str.file:
lea ecx, [ebp - 0x818]
call fcn.00406be0
lea ecx, [ebp - 0x818]
call fcn.00406f50
test eax, eax
jle 0x403488
push 0
lea ecx, [ebp - 0x818]
call fcn.00406ed0
movsx ecx, al
cmp ecx, 0x2f
jne 0x403488
lea ecx, [ebp - 0x818]
call fcn.00406f50
sub eax, 1
push eax
lea edx, [ebp - 0xc58]
push edx
lea ecx, [ebp - 0x818]
call fcn.00406da0
mov dword [ebp - 0xc68], eax
mov eax, dword [ebp - 0xc68]
mov dword [ebp - 0xc6c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc6c]
push ecx
lea ecx, [ebp - 0x818]
call fcn.00406ae0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc58]
call fcn.00406ac0
jmp 0x40340a
lea ecx, [ebp - 0x818]
call fcn.00406f50
cmp eax, 2
jle 0x4034ff
push 1
lea ecx, [ebp - 0x818]
call fcn.00406ed0
movsx edx, al
cmp edx, 0x3a
je 0x4034ff
lea eax, [ebp - 0x818]
push eax
push 0x4218d8
lea ecx, [ebp - 0xc5c]
push ecx
call fcn.00406e20
add esp, 0xc
mov dword [ebp - 0xc70], eax
mov edx, dword [ebp - 0xc70]
mov dword [ebp - 0xc74], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xc74]
push eax
lea ecx, [ebp - 0x818]
call fcn.00406ae0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc5c]
call fcn.00406ac0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x818]
call fcn.00406b20
lea ecx, [ebp - 0x818]
call fcn.00407ca0
push eax
call fcn.004018b0
add esp, 4
mov dword [ebp - 0x81c], eax
mov ecx, dword [ebp - 0x81c]
push ecx
push 0x421640
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040a690
add esp, 0xc
mov eax, dword [ebp - 0x81c]
push eax
call fcn.0040a7d0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.00406ac0
jmp 0x4036fc
mov ecx, dword [ebp - 0xc64]
cmp dword [ecx + 0x10], 0
jbe 0x4036a4
mov edx, dword [ebp - 0xc64]
mov eax, dword [edx + 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0xc50], eax
lea ecx, [ebp - 0xc4c]
push ecx
mov edx, dword [ebp - 0xc50]
push edx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [ebp - 0xc54]
call fcn.00406fe0
mov dword [ebp - 4], 3
push 0x5c
lea ecx, [ebp - 0xc54]
call fcn.00407120
push eax
lea ecx, [ebp - 0xc60]
push ecx
lea ecx, [ebp - 0xc54]
call fcn.00407200
mov dword [ebp - 0xc78], eax
mov edx, dword [ebp - 0xc78]
mov dword [ebp - 0xc7c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xc7c]
push eax
lea ecx, [ebp - 0xc54]
call fcn.00407060
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc60]
call fcn.00406ac0
mov ecx, dword [ebp + 8]
push ecx
push 0x4218dc
lea edx, [ebp - 0xc54]
push edx
call fcn.0040a6c0
add esp, 0xc
lea ecx, [ebp - 0xc54]
call fcn.00407ca0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40367c
mov eax, dword [ebp - 0xc54]
push eax
push 0x421640
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a690
add esp, 0xc
mov edx, dword [ebp - 0xc50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc54]
call fcn.00406ac0
jmp 0x4036fc
cmp dword [ebp - 0xc50], 0
je 0x403692
mov eax, dword [ebp - 0xc50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc54]
call fcn.00406ac0
push 0
lea ecx, [ebp - 0x814]
push ecx
push 0x400
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4036e7
lea ecx, [ebp - 0x814]
push ecx
push 0x421640
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040a690
add esp, 0xc
jmp 0x4036fc
mov eax, dword [ebp + 8]
push eax
push 0x421640
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a690
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cbaa
mov esp, ebp
pop ebp
ret 0xc