Function at 0x40f2c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4545f1
mov eax, dword fs:[0]
push eax
sub esp, 0xa74
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa38]
call fcn.0040b7f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa38]
push str.main
push eax
push str._s_s
lea eax, [ebp - 0x628]
push 0x208
push eax
call fcn.00401c10
add esp, 0x14
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f65d
mov eax, dword [0x482720]
test al, 1
jne 0x40f3a9
or eax, 1
push 0x45aeb0
mov dword [0x482720], eax
call fcn.004521b7
add esp, 4
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00443950
lea ecx, [ebp - 0xa80]
call fcn.0042cdc0
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp - 0xa6c], 8
push str.main
lea eax, [ebp - 0xa80]
cmovae eax, dword [ebp - 0xa80]
push eax
push str._s_s
lea eax, [ebp - 0x830]
push 0x208
push eax
call fcn.00401c10
add esp, 0x14
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x482720]
add esp, 0xc
test al, 1
jne 0x40f460
or eax, 1
push 0x45aeb0
mov dword [0x482720], eax
call fcn.004521b7
add esp, 4
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00443950
xor eax, eax
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
cmp word [ebp - 0x218], ax
jne 0x40f4a2
xor ecx, ecx
jmp 0x40f4bf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x40f4b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f4b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00406c00
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
cmp word [ebp - 0x420], ax
jne 0x40f500
xor ecx, ecx
jmp 0x40f51f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f510
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00406c00
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa3c], 8
push dword [ebp - 0xa40]
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
push dword [ebp - 0xa58]
push ecx
lea ecx, [ebp - 0xa68]
call fcn.00405ae0
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
test eax, eax
jne 0x40f5e7
cmp dword [ebp - 0xa3c], 8
jb 0x40f581
push dword [ebp - 0xa50]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa54], 8
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
jb 0x40f5b2
push dword [ebp - 0xa68]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa6c], 8
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
jb 0x40f5e3
push dword [ebp - 0xa80]
call esi
add esp, 4
mov al, 1
jmp 0x40f65f
cmp dword [ebp - 0xa3c], 8
jb 0x40f5fb
push dword [ebp - 0xa50]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa54], 8
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
jb 0x40f62c
push dword [ebp - 0xa68]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa6c], 8
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
jb 0x40f65d
push dword [ebp - 0xa80]
call esi
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret