Function at 0x409f70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45470e
mov eax, dword fs:[0]
push eax
sub esp, 0xad4
mov eax, dword [0x47f060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
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 0x40ab97
mov eax, dword [0x482720]
test al, 1
jne 0x40a05b
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 - 0xa98]
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 - 0xa84], 8
push str.main
lea eax, [ebp - 0xa98]
cmovae eax, dword [ebp - 0xa98]
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 0x40a112
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 0x40a154
xor ecx, ecx
jmp 0x40a16f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a160
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 - 0xa6c], 7
mov dword [ebp - 0xa70], 0
mov word [ebp - 0xa80], ax
cmp word [ebp - 0x420], ax
jne 0x40a1b0
xor ecx, ecx
jmp 0x40a1cf
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a1c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00406c00
xor eax, eax
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
push 1
push ecx
push 0x45efa4
lea ecx, [ebp - 0xa68]
mov byte [ebp - 4], 3
call fcn.00411400
mov ebx, eax
push ebx
push 0
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00405030
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x40a27c
cmp dword [ebp - 0xa3c], 8
jb 0x40a253
push dword [ebp - 0xa50]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40a290
push dword [ebp - 0xab0]
call esi
add esp, 4
cmp dword [ebp - 0xa3c], 8
lea edx, [ebp - 0xa50]
cmovae edx, dword [ebp - 0xa50]
xor eax, eax
mov dword [ebp - 0xab4], 7
mov dword [ebp - 0xab8], 0
mov word [ebp - 0xac8], ax
cmp word [edx], ax
jne 0x40a2ca
xor ecx, ecx
jmp 0x40a2df
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a2d0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac8]
call fcn.00406c00
push ecx
lea edx, [ebp - 0xac8]
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 4
call fcn.00432d20
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40a30d
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xa9c], 0x10
mov dword [ebp - 0xacc], eax
jb 0x40a331
push dword [ebp - 0xab0]
call esi
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0xab4], 8
mov dword [ebp - 0xa9c], 0xf
mov dword [ebp - 0xaa0], 0
mov byte [ebp - 0xab0], 0
jb 0x40a364
push dword [ebp - 0xac8]
call esi
add esp, 4
push dword [ebp - 0xa58]
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00405030
mov edi, eax
lea eax, [ebp - 0xa68]
cmp eax, edi
je 0x40a3c9
cmp dword [ebp - 0xa54], 8
jb 0x40a3a0
push dword [ebp - 0xa68]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40a3dd
push dword [ebp - 0xab0]
call esi
add esp, 4
push 1
push ecx
push 0x45efa4
lea ecx, [ebp - 0xa68]
call fcn.00411400
mov ebx, eax
push ebx
push 0
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00405030
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x40a450
cmp dword [ebp - 0xa3c], 8
jb 0x40a427
push dword [ebp - 0xa50]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40a464
push dword [ebp - 0xab0]
call esi
add esp, 4
cmp dword [ebp - 0xa3c], 8
lea edx, [ebp - 0xa50]
cmovae edx, dword [ebp - 0xa50]
xor eax, eax
mov dword [ebp - 0xab4], 7
mov dword [ebp - 0xab8], 0
mov word [ebp - 0xac8], ax
cmp word [edx], ax
jne 0x40a49e
xor ecx, ecx
jmp 0x40a4b2
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a4a3
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac8]
call fcn.00406c00
push ecx
lea edx, [ebp - 0xac8]
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 5
call fcn.00432d20
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40a4e0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xa9c], 0x10
mov dword [ebp - 0xad8], eax
jb 0x40a504
push dword [ebp - 0xab0]
call esi
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0xab4], 8
mov dword [ebp - 0xa9c], 0xf
mov dword [ebp - 0xaa0], 0
mov byte [ebp - 0xab0], 0
jb 0x40a537
push dword [ebp - 0xac8]
call esi
add esp, 4
push dword [ebp - 0xa58]
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00405030
mov edi, eax
lea eax, [ebp - 0xa68]
cmp eax, edi
je 0x40a59c
cmp dword [ebp - 0xa54], 8
jb 0x40a573
push dword [ebp - 0xa68]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa68]
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40a5b0
push dword [ebp - 0xab0]
call esi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa68]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00406870
cmp dword [ebp - 0xa3c], 8
lea edx, [ebp - 0xa50]
cmovae edx, dword [ebp - 0xa50]
xor eax, eax
mov dword [ebp - 0xab4], 7
mov dword [ebp - 0xab8], 0
mov word [ebp - 0xac8], ax
cmp word [edx], ax
jne 0x40a600
xor ecx, ecx
jmp 0x40a614
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a605
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac8]
call fcn.00406c00
push ecx
lea edx, [ebp - 0xac8]
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 6
call fcn.00432d20
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40a642
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xa9c], 0x10
mov dword [ebp - 0xad0], eax
jb 0x40a666
push dword [ebp - 0xab0]
call esi
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0xab4], 8
mov dword [ebp - 0xa9c], 0xf
mov dword [ebp - 0xaa0], 0
mov byte [ebp - 0xab0], 0
jb 0x40a699
push dword [ebp - 0xac8]
call esi
add esp, 4
push 0
push 0x45ec1c
lea ecx, [ebp - 0xa50]
call fcn.00406c00
push 1
push ecx
push 0x45efa4
lea ecx, [ebp - 0xa80]
call fcn.00411400
mov ebx, eax
push ebx
push 0
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00405030
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x40a71e
cmp dword [ebp - 0xa3c], 8
jb 0x40a6f5
push dword [ebp - 0xa50]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40a732
push dword [ebp - 0xab0]
call esi
add esp, 4
cmp dword [ebp - 0xa3c], 8
lea edx, [ebp - 0xa50]
cmovae edx, dword [ebp - 0xa50]
xor eax, eax
mov dword [ebp - 0xab4], 7
mov dword [ebp - 0xab8], 0
mov word [ebp - 0xac8], ax
cmp word [edx], ax
jne 0x40a76c
xor ecx, ecx
jmp 0x40a780
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a771
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac8]
call fcn.00406c00
push ecx
lea edx, [ebp - 0xac8]
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 7
call fcn.00432d20
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40a7ae
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xa9c], 0x10
mov dword [ebp - 0xad4], eax
jb 0x40a7d2
push dword [ebp - 0xab0]
call esi
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0xab4], 8
mov dword [ebp - 0xa9c], 0xf
mov dword [ebp - 0xaa0], 0
mov byte [ebp - 0xab0], 0
jb 0x40a805
push dword [ebp - 0xac8]
call esi
add esp, 4
push dword [ebp - 0xa70]
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00405030
mov edi, eax
lea eax, [ebp - 0xa80]
cmp eax, edi
je 0x40a86a
cmp dword [ebp - 0xa6c], 8
jb 0x40a841
push dword [ebp - 0xa80]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa80]
mov dword [ebp - 0xa6c], 7
mov dword [ebp - 0xa70], 0
mov word [ebp - 0xa80], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40a87e
push dword [ebp - 0xab0]
call esi
add esp, 4
push 1
push ecx
push 0x45efa4
lea ecx, [ebp - 0xa80]
call fcn.00411400
push eax
mov dword [ebp - 0xadc], eax
push 0
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00405030
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x40a8f5
cmp dword [ebp - 0xa3c], 8
jb 0x40a8cc
push dword [ebp - 0xa50]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa50]
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40a909
push dword [ebp - 0xab0]
call esi
add esp, 4
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
lea ecx, [ebp - 0xac8]
call fcn.00406d00
push ecx
lea edx, [ebp - 0xac8]
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 8
call fcn.00432d20
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40a94a
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xa9c], 0x10
mov ebx, eax
jb 0x40a96a
push dword [ebp - 0xab0]
call esi
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0xab4], 8
mov dword [ebp - 0xa9c], 0xf
mov dword [ebp - 0xaa0], 0
mov byte [ebp - 0xab0], 0
jb 0x40a99d
push dword [ebp - 0xac8]
call esi
add esp, 4
push dword [ebp - 0xa70]
mov eax, dword [ebp - 0xadc]
inc eax
push eax
lea eax, [ebp - 0xab0]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00405030
mov edi, eax
lea eax, [ebp - 0xa80]
cmp eax, edi
je 0x40aa06
cmp dword [ebp - 0xa6c], 8
jb 0x40a9dd
push dword [ebp - 0xa80]
call esi
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0xa80]
mov dword [ebp - 0xa6c], 7
mov dword [ebp - 0xa70], 0
mov word [ebp - 0xa80], ax
call fcn.004066d0
cmp dword [ebp - 0xa9c], 8
jb 0x40aa1a
push dword [ebp - 0xab0]
call esi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa80]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00406870
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
lea ecx, [ebp - 0xac8]
call fcn.00406d00
push ecx
lea edx, [ebp - 0xac8]
lea ecx, [ebp - 0xab0]
mov byte [ebp - 4], 9
call fcn.00432d20
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40aa71
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xa9c], 0x10
mov edi, eax
jb 0x40aa91
push dword [ebp - 0xab0]
call esi
add esp, 4
cmp dword [ebp - 0xab4], 8
mov dword [ebp - 0xa9c], 0xf
mov dword [ebp - 0xaa0], 0
mov byte [ebp - 0xab0], 0
jb 0x40aac0
push dword [ebp - 0xac8]
call esi
add esp, 4
mov eax, dword [ebp - 0xad4]
mov ecx, dword [ebp - 0xacc]
cmp eax, ecx
jg 0x40aaea
jne 0x40aae6
mov eax, dword [ebp - 0xad8]
cmp ebx, eax
jg 0x40aaea
jne 0x40aae6
cmp edi, dword [ebp - 0xad0]
jg 0x40aaea
xor bl, bl
jmp 0x40aaec
mov bl, 1
cmp dword [ebp - 0xa3c], 8
jb 0x40ab00
push dword [ebp - 0xa50]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa6c], 8
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
jb 0x40ab31
push dword [ebp - 0xa80]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa54], 8
mov dword [ebp - 0xa6c], 7
mov dword [ebp - 0xa70], 0
mov word [ebp - 0xa80], ax
jb 0x40ab62
push dword [ebp - 0xa68]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa84], 8
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
jb 0x40ab93
push dword [ebp - 0xa98]
call esi
add esp, 4
mov al, bl
jmp 0x40ab99
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452076
mov esp, ebp
pop ebp
ret