Function at 0x40f990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5201e3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5640a8]
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 dword [ebp - 0x8c], ecx
mov edx, dword [ecx]
lea ecx, [ebp - 0x88]
add edx, 0xb78
call fcn.004310a0
lea edx, [ebp - 0x88]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.0040e8a0
push 4
push 0
push str..zip
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
xor bl, bl
call fcn.0040c5d0
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x8c]
je 0x40fbc3
mov edi, dword [eax]
mov esi, dword [edi + 0xbf0]
mov edi, dword [edi + 0xbf4]
cmp esi, edi
je 0x40fbc3
mov eax, dword [eax]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
add eax, 0xc60
mov word [ebp - 0x28], cx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00402670
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
mov dword [ebp - 0x90], eax
cmp word [ecx + eax - 2], 0x5c
je 0x40fa9a
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x28]
cmp edx, 8
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx - 2], 0x2f
je 0x40fa9a
push 1
push 0x53ca00
lea ecx, [ebp - 0x28]
call fcn.0040c780
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.004310a0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040ca60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40face
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402f10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb95
cmp dword [esi + 0x28], 0
lea ecx, [ebp - 0x40]
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
mov dword [ebp - 0x2c], 7
push 5
xor eax, eax
mov dword [ebp - 0x30], 0
push str.local
mov word [ebp - 0x40], ax
call fcn.00402570
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x53cb08
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00402570
push ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.004263a0
mov eax, dword [ebp - 0x44]
add esp, 8
cmp eax, 8
jb 0x40fb6c
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402f10
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x40fb95
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402f10
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40fbae
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402f10
mov eax, dword [ebp - 0x8c]
add esi, 0x30
cmp esi, edi
jne 0x40fa28
test bl, bl
jne 0x40fbec
mov eax, dword [eax]
mov ecx, dword [eax + 0xa34]
test ecx, ecx
je 0x40fbec
mov eax, dword [ecx]
push 1
call dword [eax + 0x108]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx]
mov ecx, dword [eax + 0xa34]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x40fc01
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402f10
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x40fc30
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00402f10
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.004e1de4
mov esp, ebp
pop ebp
ret