Function at 0x40f450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x676d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x71906c]
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
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x94]
test ecx, ecx
jne 0x40f762
push 0x3a8
sub esp, 0x18
mov eax, esp
push ecx
push 0x1c
push eax
call fcn.004cde99
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
call fcn.004cce1b
add esp, 0x20
lea ecx, [ebp - 0x28]
push eax
call fcn.004068d0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40f50b
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f501
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa6d
push edx
push ecx
call fcn.0042d6b0
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.004cc37c
add esp, 4
test eax, eax
jne 0x40f563
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x700c48
cmp eax, 1
jb 0x40f552
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00506b80
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40f563
mov byte [ebp - 0x6c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x6c]
push 1
call fcn.00407ad0
cmp dword [ebx + 0x80], 0x10
lea edi, [ebx + 0x6c]
mov eax, edi
jb 0x40f573
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [ebp - 0x28]
call fcn.004067c0
push dword [ebp - 0x6c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push 0x700dac
push 0xffffffffffffffff
push esi
push eax
call fcn.00411080
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
je 0x40f61a
cmp esi, ecx
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0xf
cmovb ecx, esi
mov byte [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00406e90
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004068d0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40f61a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f610
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa72
push edx
push ecx
call fcn.0042d6b0
add esp, 8
lea eax, [ebp - 0x28]
push eax
call fcn.004cc37c
add esp, 4
test eax, eax
jne 0x40f672
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x700c48
cmp eax, 1
jb 0x40f661
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00506b80
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40f672
mov byte [ebp - 0x6c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x6c]
push 1
call fcn.00407ad0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f73d
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x40]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x40f6c2
mov eax, dword [eax]
push eax
call fcn.004cdd37
mov byte [ebp - 4], 1
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40f709
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa77
push edx
push ecx
call fcn.0042d6b0
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40f739
mov edx, dword [ecx]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 0x10
jb 0x40f750
mov edi, dword [edi]
push 0
push 0
push 0x700c4c
push eax
push edi
call fcn.004e6a20
jmp 0x40f7d9
lea eax, [ebx + 0x84]
lea edx, [ebp - 0x28]
cmp edx, eax
je 0x40f781
cmp dword [eax + 0x14], 0x10
jb 0x40f777
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00406e90
lea eax, [ebp - 0x28]
push eax
call fcn.004cc37c
add esp, 4
test eax, eax
jne 0x40f7d9
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x700c48
cmp eax, 1
jb 0x40f7c8
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.00506b80
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40f7d9
mov byte [ebp - 0x6c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x6c]
push 1
call fcn.00407ad0
cmp dword [ebx + 0x2c], 0x10
lea ecx, [ebx + 0x18]
jb 0x40f7e5
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebx + 0x28]
mov edx, dword [ebp - 0x18]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x40f81a
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea esi, [eax + edx]
push esi
call fcn.00506b80
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x40f82a
mov byte [ebp - 0x6c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x6c]
push edi
call fcn.00407ad0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f93a
push 0x75300
push 1
push 0x3a8
sub esp, 0x18
lea eax, [ebx + 0x48]
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x58]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40f876
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004069f0
lea eax, [ebp - 0x40]
push eax
call fcn.004cca9a
add esp, 0x20
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x40f8a2
mov eax, dword [eax]
push eax
call fcn.004d3814
mov byte [ebp - 4], 4
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40f8e9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f8df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa7c
push edx
push ecx
call fcn.0042d6b0
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40f93a
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f930
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa81
push edx
push ecx
call fcn.0042d6b0
add esp, 8
lea ecx, [ebp - 0x84]
call fcn.004d0286
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 6
mov ebx, dword [esi + 4]
mov esi, dword [esi]
cmp esi, ebx
je 0x40fa11
nop dword [eax]
push esi
lea ecx, [ebp - 0x40]
call fcn.004069f0
push 0
sub esp, 0x18
mov byte [ebp - 4], 7
mov edi, esp
lea eax, [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004069f0
push edi
call fcn.004cc956
add esp, 0x1c
lea ecx, [ebp - 0x84]
call fcn.004d060a
movzx eax, al
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x40f9e1
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40f9d8
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f9ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa6d
push edx
push ecx
call fcn.0042d6b0
add esp, 8
add esi, 0x18
cmp esi, ebx
jne 0x40f960
jmp 0x40fa11
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x40fa11
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa86
push edx
push ecx
call fcn.0042d6b0
add esp, 8
lea ecx, [ebp - 0x84]
call fcn.004d042d
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40fa4c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fa8b
push edx
push ecx
call fcn.0042d6b0
add esp, 8
mov al, byte [ebp - 0x70]
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.0042d065
mov esp, ebp
pop ebp
ret 8
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
call fcn.0050cc3e
int3