Function at 0x40f9d4
Capabilities:
Check if file exists

Disassembly:
push 0x38
mov eax, 0x52e64b
call fcn.00512375
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.004013da
lea edi, [eax + 0x10]
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 3
lea ebx, [edi - 0x10]
push ebx
call fcn.004013da
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 5
mov esi, str..temp
push esi
call fcn.00512590
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00401a1d
call fcn.00414e89
push eax
lea ecx, [ebp - 0x30]
call fcn.0040131c
mov byte [ebp - 4], 7
push dword [ebp - 0x34]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call esi
test eax, eax
je 0x40fa93
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push 0x543628
push eax
call fcn.00401b9f
pop ecx
pop ecx
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 8
mov byte [ebp - 4], 7
call fcn.00402f79
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 9
mov byte [ebp - 4], 7
call fcn.00412dc7
pop ecx
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push edi
push 0x543610
push eax
call fcn.00401b9f
add esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 7
call fcn.00402f79
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 7
call fcn.00412f66
push ebx
call fcn.004013da
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xe
mov edi, str..runtemp
push edi
call fcn.00512590
add esp, 0x10
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.00401a1d
mov edi, dword [ebp - 0x38]
push edi
call esi
test eax, eax
je 0x40fb6b
push edi
lea eax, [ebp - 0x30]
push 0x543628
push eax
call fcn.00401b9f
pop ecx
pop ecx
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
call fcn.00402f79
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xe
call fcn.00412dc7
pop ecx
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0x543610
push eax
call fcn.00401b9f
add esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xe
call fcn.00402f79
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x12
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0xe
call fcn.00412e89
push dword [ebp + 8]
mov esi, dword [ebp - 0x34]
push esi
lea eax, [ebp - 0x30]
push 0x5435ec
push eax
call fcn.00401b9f
add esp, 0x14
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0xe
call fcn.00402f79
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x15
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0xe
call fcn.00412e89
pop ecx
pop ecx
test eax, eax
jne 0x40fc68
call fcn.00402067
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402275
pop ecx
pop ecx
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0x10
jb 0x40fc4d
mov eax, dword [eax]
push eax
push dword [ebp + 0xc]
call fcn.004127f3
pop ecx
pop ecx
mov byte [ebp - 4], 0xe
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401536
mov byte [ebp - 4], 7
lea ecx, [edi - 0x10]
call fcn.004010d2
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 3
lea ecx, [esi - 0x10]
call fcn.004010d2
mov byte [ebp - 4], 1
mov ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123f8
ret 8