Function at 0x40b3ae
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x42f1a1
call fcn.00414ad0
sub esp, 0x28c
mov eax, dword [0x43dde0]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x278], ebx
call fcn.00403fc4
lea edi, [ebx + 8]
cmp dword [edi + 0x18], 8
jb 0x40b3e9
mov eax, dword [edi + 4]
jmp 0x40b3ec
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b408
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.00401476
jmp 0x40b625
mov eax, dword [ebx]
xor ebx, ebx
cmp eax, ebx
je 0x40b625
mov ecx, edi
call fcn.00403fc4
mov ecx, dword [ebp - 0x278]
or dword [ebp + 8], 0xffffffff
lea eax, [ebp + 8]
push eax
call fcn.0040b2d9
test al, al
je 0x40b625
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x40b4d8
dec eax
jne 0x40b625
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.004010ca
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 3
call fcn.0040aeea
test al, al
je 0x40b4d0
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407d39
test al, al
pop ecx
pop ecx
je 0x40b4d0
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x278]
add eax, 0x24
push eax
push ebx
push dword [ebp - 0x27c]
mov dword [ebp + 0xc], eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x278], esp
push str.ARCHIVE
call fcn.00404849
call fcn.0040f977
mov ecx, dword [ebp + 0xc]
add esp, 0x2c
push edi
call fcn.0040f917
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.00401476
lea ecx, [ebp - 0x2c]
jmp 0x40b61d
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 7
call fcn.004010ca
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 7
call fcn.004010ca
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.0040f80f
test al, al
pop ecx
je 0x40b60f
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040aeea
test al, al
je 0x40b60f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00404963
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401476
push ebx
push 1
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 1
call fcn.0040111c
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.00401476
cmp dword [ebp + 0xc], ebx
je 0x40b60f
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
lea edi, [esi + 4]
jb 0x40b5a5
mov eax, dword [edi]
jmp 0x40b5a7
mov eax, edi
lea ecx, [ebp - 0x274]
push ecx
push eax
call fcn.00429296
test eax, eax
je 0x40b60f
cmp dword [esi + 0x18], 8
jb 0x40b5c2
mov eax, dword [edi]
jmp 0x40b5c4
mov eax, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push ebx
push eax
push dword [ebp - 0x258]
push dword [ebp - 0x25c]
push dword [ebp - 0x258]
push dword [ebp - 0x25c]
call dword [edx]
cmp dword [esi + 0x18], 8
jb 0x40b5ed
mov edi, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 1
push edi
push dword [ebp - 0x258]
push dword [ebp - 0x25c]
push dword [ebp - 0x258]
push dword [ebp - 0x25c]
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040111c
lea ecx, [ebp - 0x48]
push ebx
push 1
call fcn.0040111c
cmp dword [esi + 0x18], 8
jb 0x40b630
mov esi, dword [esi + 4]
jmp 0x40b633
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0xc]
dec eax
neg eax
sbb eax, eax
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
inc eax
call fcn.004145de
pop edi
pop esi
pop ebx
leave
ret 8