Function at 0x4013f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddc89
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5246f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x230], ecx
lea eax, [ebp - 0x144]
push eax
call fcn.00409bf0
mov ecx, eax
call fcn.00409f80
mov dword [ebp - 4], 0
push 0x510564
lea ecx, [ebp - 0x144]
push ecx
lea edx, [ebp - 0x17c]
push edx
call fcn.00403800
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
lea edi, [ebp - 0x160]
call fcn.00457c50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x17c]
call fcn.00404cf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4015bf
push 0x510590
lea ecx, [ebp - 0x2c]
call fcn.004053b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x160]
lea esi, [ebp - 0x1d4]
call fcn.004574a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00405520
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.00401190
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x238]
lea esi, [ebp - 0x64]
call fcn.0043e610
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x230]
add ecx, 0x5c
call fcn.00402bb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.00405540
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00405520
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x1d4]
call fcn.004011c0
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x248], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x248]
lea esi, [ebp - 0x9c]
call fcn.0043e610
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x230]
call fcn.00402bb0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
call fcn.00405540
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.00405520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d4]
call fcn.004017a0
jmp 0x401728
lea edx, [ebp - 0xb8]
push edx
mov ecx, dword [ebp - 0x230]
call fcn.00402440
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x258]
push ecx
mov ecx, dword [ebp - 0x230]
call fcn.00402bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.00405540
lea edx, [ebp - 0xd4]
push edx
mov ecx, dword [ebp - 0x230]
call fcn.00402720
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x260]
push ecx
mov ecx, dword [ebp - 0x230]
add ecx, 0x5c
call fcn.00402bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.00405540
push 0x51059c
lea ecx, [ebp - 0x10c]
call fcn.004053b0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x230]
lea esi, [ebp - 0xf0]
call fcn.0043e450
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x268], edx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x230]
add ecx, 0x5c
lea esi, [ebp - 0x128]
call fcn.0043e450
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x268]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x270]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00456d10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x128]
call fcn.00405520
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xf0]
call fcn.00405520
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x10c]
call fcn.00405520
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00456d80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.004017a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x160]
call fcn.00401780
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x17c]
call fcn.00405540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00405540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f522
mov esp, ebp
pop ebp
ret