Function at 0x40ad72
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x4c
mov eax, 0x426dc8
call fcn.0040e9cc
sub esp, 0x51c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x8c], ecx
xor esi, esi
mov dword [ebp - 4], esi
push 0x250
push esi
lea eax, [ebp - 0x320]
push eax
call fcn.0040f560
push 0x208
push esi
lea eax, [ebp - 0x528]
push eax
call fcn.0040f560
add esp, 0x18
mov dword [ebp + 0x48], 0xffd5
lea ecx, [ebp + 0x48]
mov eax, esi
mov dword [ebp - 0x9c], eax
cmp eax, 1
jae 0x40addd
not word [ebp + eax*2 + 0x48]
inc eax
jmp 0x40adca
xor eax, eax
mov word [ebp + 0x4a], ax
push ecx
push dword [ebp + 0x58]
lea eax, [ebp - 0x528]
push eax
push 0x5584e887
push 8
pop edi
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x528]
push eax
push 0xc2c09f60
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
jne 0x40ae4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40b5e5
push 0xffffffffffffffff
push 0x27d40965
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
jmp 0x40b5e5
mov ebx, 0x79682b4
test byte [ebp - 0x320], 0x10
je 0x40b15d
mov dword [ebp + 0x40], 0xffd1
mov eax, esi
mov dword [ebp - 0xa0], eax
cmp eax, 1
jae 0x40ae7b
not word [ebp + eax*2 + 0x40]
inc eax
jmp 0x40ae68
xor eax, eax
mov word [ebp + 0x42], ax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0x2f4]
push eax
push 0x60141e93
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b5ac
mov dword [ebp + 0xa], 0xffd1ffd1
xor eax, eax
mov word [ebp + 0xe], ax
mov eax, esi
mov dword [ebp - 0xa4], eax
cmp eax, 2
jae 0x40aec5
not word [ebp + eax*2 + 0xa]
inc eax
jmp 0x40aeb2
xor eax, eax
mov word [ebp + 0xe], ax
lea eax, [ebp + 0xa]
push eax
lea eax, [ebp - 0x2f4]
push eax
push 0x60141e93
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b5ac
mov dword [ebp + 0x10], 0xff90ffbb
mov dword [ebp + 0x14], 0xff8aff9c
mov dword [ebp + 0x18], 0xff9aff92
mov dword [ebp + 0x1c], 0xff8bff91
mov dword [ebp + 0x20], 0xffdfff8c
mov dword [ebp + 0x24], 0xff91ff9e
mov dword [ebp + 0x28], 0xffdfff9b
mov dword [ebp + 0x2c], 0xff9affac
mov dword [ebp + 0x30], 0xff8bff8b
mov dword [ebp + 0x34], 0xff91ff96
mov dword [ebp + 0x38], 0xff8cff98
xor eax, eax
mov word [ebp + 0x3c], ax
mov eax, esi
push 8
pop edi
mov dword [ebp - 0xa8], eax
cmp eax, 0x16
jae 0x40af58
not word [ebp + eax*2 + 0x10]
inc eax
jmp 0x40af45
xor eax, eax
mov word [ebp + 0x3c], ax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x2f4]
push eax
push 0x60141e93
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b5ac
mov dword [ebp - 0x84], 0xff8fffbe
mov dword [ebp - 0x80], 0xff93ff8f
mov dword [ebp - 0x7c], 0xff9cff96
mov dword [ebp - 0x78], 0xff8bff9e
mov dword [ebp - 0x74], 0xff90ff96
mov dword [ebp - 0x70], 0xffdfff91
mov dword [ebp - 0x6c], 0xff9effbb
mov dword [ebp - 0x68], 0xff9eff8b
xor eax, eax
mov word [ebp - 0x64], ax
mov eax, esi
mov dword [ebp - 0xac], eax
cmp eax, 0x10
jae 0x40afd9
not word [ebp + eax*2 - 0x84]
inc eax
jmp 0x40afc3
xor eax, eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2f4]
push eax
push 0x60141e93
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b5ac
mov ebx, esi
mov dword [ebp - 0x88], ebx
mov eax, dword [0x43365c]
sub eax, dword [0x433658]
cdq
push 0x18
pop ecx
idiv ecx
cmp ebx, eax
jae 0x40b10a
mov byte [ebp - 4], 1
imul ecx, ebx, 0x18
mov dword [ebp - 0xb0], ecx
add ecx, dword [0x433658]
mov eax, ecx
mov dword [ebp + 0x48], eax
cmp dword [ecx + 0x14], 0x10
jb 0x40b048
mov eax, dword [ecx]
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x44], eax
lea eax, [ebp - 0xd0]
push eax
call fcn.004096c9
lea ecx, [ebp + 0x4f]
push ecx
push dword [eax]
push dword [ebp + 0x48]
lea ecx, [ebp + 0x24]
call fcn.00407799
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], edi
cmovae eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x2f4]
push eax
push 0x79682b4
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b0e3
lea eax, [ebp - 0x2f4]
push eax
push dword [ebp + 0x58]
lea eax, [ebp - 0x528]
push eax
push 0x5584e887
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
mov eax, dword [0x433658]
add eax, dword [ebp - 0xb0]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401e86
lea eax, [ebp - 0x528]
push eax
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x68]
push eax
call fcn.00401e86
mov ecx, dword [ebp - 0x8c]
call fcn.00409723
lea ecx, [ebp + 0x24]
call fcn.004074e4
mov dword [ebp - 4], esi
jmp 0x40b104
inc ebx
jmp 0x40b006
lea eax, [ebp - 0x2f4]
push eax
push dword [ebp + 0x58]
lea eax, [ebp - 0x528]
push eax
push 0x5584e887
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x68]
push eax
call fcn.00401e86
push dword [ebp + 0x64]
push dword [ebp + 0x60]
push dword [ebp + 0x5c]
lea eax, [ebp - 0x528]
push eax
mov ecx, dword [ebp - 0x8c]
call fcn.0040ad72
mov ebx, 0x79682b4
jmp 0x40b5ac
push dword [ebp + 0x5c]
lea eax, [ebp - 0x2f4]
push eax
push 0xddac09ca
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b1cd
push dword [ebp + 0x5c]
lea eax, [ebp - 0xec]
push eax
push 0xddac09ca
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b1cd
push dword [ebp + 0x60]
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
jne 0x40b1cd
push dword [ebp + 0x60]
lea eax, [ebp - 0xec]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b28c
mov dword [ebp], 0xff93ffd1
mov dword [ebp + 4], 0xff94ff91
xor eax, eax
mov word [ebp + 8], ax
mov eax, esi
mov dword [ebp - 0xb4], eax
cmp eax, 4
jae 0x40b1f6
not word [ebp + eax*2]
inc eax
jmp 0x40b1e3
xor eax, eax
mov word [ebp + 8], ax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
jne 0x40b28c
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x40b23a
lea ecx, [ebp - 0x2f4]
push ecx
push dword [ebp + 0x58]
push eax
push 0x5584e887
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
mov eax, dword [ebp + 0x64]
push eax
lea ecx, [ebp + 0x24]
call fcn.00407463
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x38], edi
cmovae ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x34]
lea ecx, [ecx + eax*2]
mov dword [ebp + 0x44], ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
mov dword [ebp + 0x44], eax
lea edx, [ebp + 0x4f]
push edx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040731c
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x43364c
call fcn.00402ce4
lea ecx, [ebp - 0x7c]
call fcn.0040191d
lea ecx, [ebp + 0x24]
call fcn.004074e4
mov dword [ebp - 0x1a], 0xff9eff8f
mov dword [ebp - 0x16], 0xff8cff8c
xor eax, eax
mov word [ebp - 0x12], ax
mov eax, esi
mov dword [ebp - 0xb8], eax
cmp eax, 4
jae 0x40b2b5
not word [ebp + eax*2 - 0x1a]
inc eax
jmp 0x40b2a2
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b3aa
mov dword [ebp - 0x24], 0xff8bffd1
mov dword [ebp - 0x20], 0xff8bff87
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, esi
mov dword [ebp - 0xbc], eax
cmp eax, 4
jae 0x40b302
not word [ebp + eax*2 - 0x24]
inc eax
jmp 0x40b2ef
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b3aa
mov dword [ebp - 0x2e], 0xff93ffd1
mov dword [ebp - 0x2a], 0xff94ff91
xor eax, eax
mov word [ebp - 0x26], ax
mov eax, esi
mov dword [ebp - 0xc0], eax
cmp eax, 4
jae 0x40b34f
not word [ebp + eax*2 - 0x2e]
inc eax
jmp 0x40b33c
xor eax, eax
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
jne 0x40b5ac
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x40b5ac
lea ecx, [ebp - 0x2f4]
push ecx
push dword [ebp + 0x58]
push eax
push 0x5584e887
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
push dword [ebp + 0x64]
call fcn.00403126
cmp eax, 0x19000
jmp 0x40b555
mov dword [ebp - 0x38], 0xff9eff8f
mov dword [ebp - 0x34], 0xff8cff8c
xor eax, eax
mov word [ebp - 0x30], ax
mov eax, esi
mov dword [ebp - 0xc4], eax
cmp eax, 4
jae 0x40b3d3
not word [ebp + eax*2 - 0x38]
inc eax
jmp 0x40b3c0
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b440
mov dword [ebp - 0x42], 0xff9bffd1
mov dword [ebp - 0x3e], 0xff9cff90
xor eax, eax
mov word [ebp - 0x3a], ax
mov eax, esi
mov dword [ebp - 0xc8], eax
cmp eax, 4
jae 0x40b41c
not word [ebp + eax*2 - 0x42]
inc eax
jmp 0x40b409
xor eax, eax
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x42]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
jne 0x40b4da
mov dword [ebp - 0x4c], 0xff9eff8f
mov dword [ebp - 0x48], 0xff8cff8c
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, esi
mov dword [ebp - 0xcc], eax
cmp eax, 4
jae 0x40b469
not word [ebp + eax*2 - 0x4c]
inc eax
jmp 0x40b456
xor eax, eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b5ac
mov dword [ebp - 0x56], 0xff8dffd1
mov dword [ebp - 0x52], 0xff99ff8b
xor eax, eax
mov word [ebp - 0x4e], ax
mov eax, esi
mov dword [ebp - 0x94], eax
cmp eax, 4
jae 0x40b4b6
not word [ebp + eax*2 - 0x56]
inc eax
jmp 0x40b4a3
xor eax, eax
mov word [ebp - 0x4e], ax
lea eax, [ebp - 0x56]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x40b5ac
mov dword [ebp - 0x60], 0xff93ffd1
mov dword [ebp - 0x5c], 0xff94ff91
xor eax, eax
mov word [ebp - 0x58], ax
mov eax, esi
mov dword [ebp - 0x98], eax
cmp eax, 4
jae 0x40b503
not word [ebp + eax*2 - 0x60]
inc eax
jmp 0x40b4f0
xor eax, eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
jne 0x40b5ac
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x40b5ac
lea ecx, [ebp - 0x2f4]
push ecx
push dword [ebp + 0x58]
push eax
push 0x5584e887
push edi
call fcn.00401489
pop ecx
pop ecx
call eax
push dword [ebp + 0x64]
call fcn.00403126
cmp eax, 0x200000
pop ecx
jae 0x40b5ac
push dword [ebp + 0x64]
lea ecx, [ebp + 0x24]
call fcn.00407463
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x38], edi
mov eax, dword [ebp + 0x34]
cmovae ecx, dword [ebp + 0x24]
lea ecx, [ecx + eax*2]
lea edx, [ebp + 0x4f]
lea eax, [ebp + 0x24]
push edx
mov dword [ebp + 0x44], ecx
cmovae eax, dword [ebp + 0x24]
push ecx
mov dword [ebp + 0x44], eax
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040731c
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x433640
call fcn.00402ce4
lea ecx, [ebp - 0x7c]
call fcn.0040191d
lea ecx, [ebp + 0x24]
call fcn.004074e4
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x90]
push 0x7e0c63e6
push esi
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
jne 0x40ae52
push dword [ebp - 0x90]
jmp 0x40ae39
lea ecx, [ebp + 0x68]
call fcn.0040191d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add ebp, 0x50
leave
ret 0x28