Function at 0x407890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
xor cl, cl
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x10], edi
mov byte [esp + 0xe], cl
jbe 0x407a63
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
mov edx, dword [ebp + 8]
sub ebx, edx
mov eax, dword [edi + 0x12c]
cmp ebx, eax
mov dword [esp + 0x14], ecx
cmova ebx, eax
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x128]
mov dword [esp + 0x1c], eax
mov byte [esp + 0xf], 0
mov eax, ecx
sub eax, edx
cmp eax, ebx
jae 0x4078f8
mov ebx, eax
test ebx, ebx
je 0x407a73
mov byte [esp + 0xf], 1
mov eax, ecx
mov ecx, edx
sub eax, ebx
cmp byte [ebp + 0x18], 0
cmovne ecx, eax
xor edx, edx
mov dword [esp + 0x20], ecx
cmp word [edi + 0x3c], dx
jne 0x40791c
mov eax, dword [edi + 0x40]
test eax, eax
je 0x40791c
add ecx, eax
adc edx, edx
push 1
push edx
push ecx
mov ecx, dword [edi + 0x1c]
call fcn.00402490
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x24], edi
mov eax, dword [edi]
mov edx, dword [eax + 0x2c]
cmp eax, vtable.CZipFile.0
jne 0x407acd
test ebx, ebx
jne 0x407947
xor edi, edi
jmp 0x407977
call fcn.0064c8d9
push ebx
push dword [esp + 0x20]
mov dword [eax], 0
push dword [edi + 4]
call fcn.00659eaf
mov edi, eax
add esp, 0xc
cmp edi, ebx
jge 0x407977
call fcn.0064c8d9
cmp dword [eax], 0
je 0x407977
jmp 0x407ac4
test edi, edi
je 0x407a6f
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, dword [ebp + 0x10]
add ecx, dword [ebp + 0x10]
cmp byte [ebp + 0x18], 0
mov edx, dword [esp + 0x10]
cmove ecx, eax
xor eax, eax
cmp word [edx + 0x3c], ax
jne 0x4079a9
mov edx, dword [edx + 0x40]
test edx, edx
je 0x4079a9
add ecx, edx
adc eax, eax
push 1
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [eax + 0x1c]
call fcn.00402490
mov eax, dword [esp + 0x10]
push edi
push dword [esp + 0x20]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x2c], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
cmp eax, vtable.CZipFile.0
jne 0x407ae6
push dword [ecx + 4]
call fcn.006596d0
add esp, 0xc
cmp eax, edi
je 0x4079ed
jmp 0x407add
cmp byte [ebp + 0x18], 0
je 0x4079f9
sub dword [esp + 0x14], edi
jmp 0x4079fd
add dword [esp + 0x18], edi
test esi, esi
je 0x407a4b
mov eax, dword [esi + 0x44]
cmp eax, 1
jne 0x407a15
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x24]
call eax
jmp 0x407a39
add dword [esi + 0x4c], edi
mov ecx, dword [esi + 0x48]
cmp ecx, eax
jl 0x407a45
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x4c]
mov eax, dword [eax + 0x24]
call eax
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], 0
test al, al
jne 0x407a4b
mov edi, dword [esp + 0x10]
mov cl, 1
jmp 0x407a77
lea eax, [ecx + 1]
mov dword [esi + 0x48], eax
cmp byte [esp + 0xf], 0
mov edi, dword [esp + 0x10]
jne 0x407a73
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x4078e1
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
jmp 0x407a7b
mov edi, dword [esp + 0x10]
mov cl, byte [esp + 0xe]
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x407aaf
test cl, cl
jne 0x407aed
cmp byte [ebp + 0x1c], cl
je 0x407aaf
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x407a93
mov al, 1
jmp 0x407a9d
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], 0
test al, al
je 0x407aed
cmp dword [ebp + 0x10], 0
jbe 0x407abb
cmp ebx, dword [esp + 0x18]
jne 0x407b01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [esp + 0x24]
call fcn.0040fc60
push ebx
push dword [esp + 0x20]
mov ecx, edi
call edx
mov edi, eax
jmp 0x407977
mov ecx, dword [esp + 0x24]
call fcn.0040fc60
call edx
jmp 0x4079ed
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
push ecx
push 0xce
mov ecx, edi
call fcn.004066b0
push ecx
push 0xd7
mov ecx, edi
call fcn.004066b0
int3