Function at 0x4090d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443924
mov eax, dword fs:[0]
push eax
sub esp, 0xae4
mov eax, dword [0x467060]
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 - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x628]
call fcn.0040a8b0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xacc], 7
mov dword [ebp - 0xad0], 0
mov word [ebp - 0xae0], ax
cmp word [ebp - 0x628], ax
jne 0x40916f
xor ecx, ecx
jmp 0x40918f
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
jmp 0x409180
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409180
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xae0]
call fcn.00405570
push str.main
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xab0]
mov dword [ebp - 4], 0
call fcn.0041fa60
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0xacc], 8
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x4091e0
push dword [ebp - 0xae0]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0xa9c], 8
mov word [ebp - 0xae0], ax
push ecx
lea eax, [ebp - 0xab0]
cmovae eax, dword [ebp - 0xab0]
push eax
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x830]
mov dword [ebp - 0xacc], 7
mov dword [ebp - 0xad0], 0
call fcn.00405d10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409d60
mov eax, dword [0x469f0c]
test al, 1
jne 0x409275
or eax, 1
push 0x4486e0
mov dword [0x469f0c], eax
call fcn.00441527
add esp, 4
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00432c10
lea ecx, [ebp - 0xa98]
call fcn.0041f3f0
xor eax, eax
push 0x206
mov byte [ebp - 4], 3
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
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 0x44bbb4
lea eax, [ebp - 0xa38]
push 0x208
push eax
call fcn.00401b90
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
mov eax, dword [0x469f0c]
add esp, 0xc
test al, 1
jne 0x409329
or eax, 1
push 0x4486e0
mov dword [0x469f0c], eax
call fcn.00441527
add esp, 4
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.00432c10
xor eax, eax
mov dword [ebp - 0xa54], 7
mov dword [ebp - 0xa58], 0
mov word [ebp - 0xa68], ax
cmp word [ebp - 0x420], ax
jne 0x40936b
xor ecx, ecx
jmp 0x409383
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409374
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00405570
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0xa6c], 7
mov dword [ebp - 0xa70], 0
mov word [ebp - 0xa80], ax
cmp word [ebp - 0x218], ax
jne 0x4093c4
xor ecx, ecx
jmp 0x4093df
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4093d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00405570
xor eax, eax
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], 0
mov word [ebp - 0xa50], ax
push 1
push ecx
push 0x44ba14
lea ecx, [ebp - 0xa68]
mov byte [ebp - 4], 6
call fcn.0040d0b0
mov ebx, eax
push ebx
push 0
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00403de0
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x409486
cmp dword [ebp - 0xa3c], 8
jb 0x40945d
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.004053a0
cmp dword [ebp - 0xab4], 8
jb 0x40949a
push dword [ebp - 0xac8]
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 - 0xacc], 7
mov dword [ebp - 0xad0], 0
mov word [ebp - 0xae0], ax
cmp word [edx], ax
jne 0x4094d4
xor ecx, ecx
jmp 0x4094ef
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4094e0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xae0]
call fcn.00405570
push ecx
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xac8]
mov byte [ebp - 4], 7
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40951d
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xab4], 0x10
mov dword [ebp - 0xaec], eax
jb 0x409541
push dword [ebp - 0xac8]
call esi
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0xacc], 8
mov dword [ebp - 0xab4], 0xf
mov dword [ebp - 0xab8], 0
mov byte [ebp - 0xac8], 0
jb 0x409574
push dword [ebp - 0xae0]
call esi
add esp, 4
push dword [ebp - 0xa58]
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00403de0
mov edi, eax
lea eax, [ebp - 0xa68]
cmp eax, edi
je 0x4095d9
cmp dword [ebp - 0xa54], 8
jb 0x4095b0
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.004053a0
cmp dword [ebp - 0xab4], 8
jb 0x4095ed
push dword [ebp - 0xac8]
call esi
add esp, 4
push 1
push ecx
push 0x44ba14
lea ecx, [ebp - 0xa68]
call fcn.0040d0b0
mov ebx, eax
push ebx
push 0
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00403de0
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x409660
cmp dword [ebp - 0xa3c], 8
jb 0x409637
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.004053a0
cmp dword [ebp - 0xab4], 8
jb 0x409674
push dword [ebp - 0xac8]
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 - 0xacc], 7
mov dword [ebp - 0xad0], 0
mov word [ebp - 0xae0], ax
cmp word [edx], ax
jne 0x4096ae
xor ecx, ecx
jmp 0x4096c2
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4096b3
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xae0]
call fcn.00405570
push ecx
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xac8]
mov byte [ebp - 4], 8
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4096f0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xab4], 0x10
mov dword [ebp - 0xae4], eax
jb 0x409714
push dword [ebp - 0xac8]
call esi
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0xacc], 8
mov dword [ebp - 0xab4], 0xf
mov dword [ebp - 0xab8], 0
mov byte [ebp - 0xac8], 0
jb 0x409747
push dword [ebp - 0xae0]
call esi
add esp, 4
push dword [ebp - 0xa58]
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa68]
call fcn.00403de0
mov edi, eax
lea eax, [ebp - 0xa68]
cmp eax, edi
je 0x4097ac
cmp dword [ebp - 0xa54], 8
jb 0x409783
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.004053a0
cmp dword [ebp - 0xab4], 8
jb 0x4097c0
push dword [ebp - 0xac8]
call esi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa68]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00405a00
cmp dword [ebp - 0xa3c], 8
lea edx, [ebp - 0xa50]
cmovae edx, dword [ebp - 0xa50]
xor eax, eax
mov dword [ebp - 0xacc], 7
mov dword [ebp - 0xad0], 0
mov word [ebp - 0xae0], ax
cmp word [edx], ax
jne 0x409810
xor ecx, ecx
jmp 0x409824
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409815
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xae0]
call fcn.00405570
push ecx
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xac8]
mov byte [ebp - 4], 9
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x409852
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xab4], 0x10
mov dword [ebp - 0xae8], eax
jb 0x409876
push dword [ebp - 0xac8]
call esi
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0xacc], 8
mov dword [ebp - 0xab4], 0xf
mov dword [ebp - 0xab8], 0
mov byte [ebp - 0xac8], 0
jb 0x4098a9
push dword [ebp - 0xae0]
call esi
add esp, 4
push 0
push 0x44acac
lea ecx, [ebp - 0xa50]
call fcn.00405570
push 1
push ecx
push 0x44ba14
lea ecx, [ebp - 0xa80]
call fcn.0040d0b0
mov ebx, eax
push ebx
push 0
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00403de0
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x40992e
cmp dword [ebp - 0xa3c], 8
jb 0x409905
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.004053a0
cmp dword [ebp - 0xab4], 8
jb 0x409942
push dword [ebp - 0xac8]
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 - 0xacc], 7
mov dword [ebp - 0xad0], 0
mov word [ebp - 0xae0], ax
cmp word [edx], ax
jne 0x40997c
xor ecx, ecx
jmp 0x409990
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409981
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xae0]
call fcn.00405570
push ecx
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xac8]
mov byte [ebp - 4], 0xa
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x4099be
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xab4], 0x10
mov dword [ebp - 0xaf0], eax
jb 0x4099e2
push dword [ebp - 0xac8]
call esi
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0xacc], 8
mov dword [ebp - 0xab4], 0xf
mov dword [ebp - 0xab8], 0
mov byte [ebp - 0xac8], 0
jb 0x409a15
push dword [ebp - 0xae0]
call esi
add esp, 4
push dword [ebp - 0xa70]
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00403de0
mov edi, eax
lea eax, [ebp - 0xa80]
cmp eax, edi
je 0x409a7a
cmp dword [ebp - 0xa6c], 8
jb 0x409a51
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.004053a0
cmp dword [ebp - 0xab4], 8
jb 0x409a8e
push dword [ebp - 0xac8]
call esi
add esp, 4
push 1
push ecx
push 0x44ba14
lea ecx, [ebp - 0xa80]
call fcn.0040d0b0
mov ebx, eax
push ebx
push 0
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00403de0
mov edi, eax
lea eax, [ebp - 0xa50]
cmp eax, edi
je 0x409b01
cmp dword [ebp - 0xa3c], 8
jb 0x409ad8
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.004053a0
cmp dword [ebp - 0xab4], 8
jb 0x409b15
push dword [ebp - 0xac8]
call esi
add esp, 4
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
lea ecx, [ebp - 0xae0]
call fcn.00405670
push ecx
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xac8]
mov byte [ebp - 4], 0xb
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x409b56
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xab4], 0x10
mov edi, eax
jb 0x409b76
push dword [ebp - 0xac8]
call esi
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0xacc], 8
mov dword [ebp - 0xab4], 0xf
mov dword [ebp - 0xab8], 0
mov byte [ebp - 0xac8], 0
jb 0x409ba9
push dword [ebp - 0xae0]
call esi
add esp, 4
push dword [ebp - 0xa70]
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0xac8]
push eax
lea ecx, [ebp - 0xa80]
call fcn.00403de0
push eax
lea ecx, [ebp - 0xa80]
call fcn.00403d00
cmp dword [ebp - 0xab4], 8
jb 0x409be5
push dword [ebp - 0xac8]
call esi
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa80]
push eax
lea ecx, [ebp - 0xa50]
call fcn.00405a00
cmp dword [ebp - 0xa3c], 8
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push eax
lea ecx, [ebp - 0xae0]
call fcn.00405670
push ecx
lea edx, [ebp - 0xae0]
lea ecx, [ebp - 0xac8]
mov byte [ebp - 4], 0xc
call fcn.00421350
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x409c3c
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
cmp dword [ebp - 0xab4], 0x10
mov ebx, eax
jb 0x409c5c
push dword [ebp - 0xac8]
call esi
add esp, 4
cmp dword [ebp - 0xacc], 8
mov dword [ebp - 0xab4], 0xf
mov dword [ebp - 0xab8], 0
mov byte [ebp - 0xac8], 0
jb 0x409c8b
push dword [ebp - 0xae0]
call esi
add esp, 4
mov eax, dword [ebp - 0xaf0]
mov ecx, dword [ebp - 0xaec]
cmp eax, ecx
jg 0x409cb5
jne 0x409cb1
mov eax, dword [ebp - 0xae4]
cmp edi, eax
jg 0x409cb5
jne 0x409cb1
cmp ebx, dword [ebp - 0xae8]
jg 0x409cb5
xor bl, bl
jmp 0x409cb7
mov bl, 1
cmp dword [ebp - 0xa3c], 8
jb 0x409ccb
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 0x409cfc
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 0x409d2d
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 0x409d62
push dword [ebp - 0xa98]
call esi
add esp, 4
jmp 0x409d62
mov bl, 1
cmp dword [ebp - 0xa9c], 8
jb 0x409d76
push dword [ebp - 0xab0]
call esi
add esp, 4
mov al, bl
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.004413e6
mov esp, ebp
pop ebp
ret