Function at 0x50f0a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72d4e1
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b4], ecx
cmp dword [ecx + 4], 0
mov dword [ebp - 4], 1
je 0x50f468
mov edi, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmp edi, 8
mov edx, 0x5c
cmovae ecx, dword [ebp + 8]
lea ecx, [ecx + eax*2]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp eax, ecx
je 0x50f11a
cmp word [eax], 0x2f
jne 0x50f110
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x50f107
mov edi, dword [ebp + 0x1c]
cmp dword [ebp + 0x34], 8
lea edx, [ebp + 0x20]
mov eax, dword [ebp + 0x30]
cmovae edx, dword [ebp + 0x20]
lea edx, [edx + eax*2]
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
cmp eax, edx
je 0x50f153
mov ecx, 0x5c
nop dword [eax + eax]
cmp word [eax], 0x2f
jne 0x50f149
mov word [eax], cx
add eax, 2
cmp eax, edx
jne 0x50f140
mov edi, dword [ebp + 0x1c]
lea ecx, [ebp - 0x4ad]
cmp edi, 8
push ecx
push dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0049b170
add esp, 0x10
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
cmovae eax, dword [ebp - 0x440]
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x4b8], esi
mov edx, dword [ebp - 0x42c]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x50f1ea
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50f1e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50f49b
push edx
push ecx
call fcn.0051def4
add esp, 8
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
cmp esi, 0xffffffff
je 0x50f4a0
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x444], 0
push eax
lea eax, [ebp - 0x4d0]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x4d8]
movlpd qword [ebp - 0x44c], xmm0
push eax
push esi
movlpd qword [ebp - 0x4d8], xmm0
movlpd qword [ebp - 0x4d0], xmm0
movlpd qword [ebp - 0x4c8], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x4c0]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x4c8]
movlpd qword [ebp - 0x4c0], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x420]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x4c0]
push eax
movups xmmword [ebp - 0x420], xmm0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [ebp - 0x416]
movzx eax, word [ebp - 0x414]
movzx edi, word [ebp - 0x41e]
movzx esi, word [ebp - 0x41a]
dec edi
cmp dword [ebp + 0x34], 8
movzx edx, word [ebp - 0x418]
mov dword [ebp - 0x464], eax
movzx eax, word [ebp - 0x420]
mov dword [ebp - 0x460], ecx
lea ecx, [ebp - 0x4ad]
mov dword [ebp - 0x450], eax
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push ecx
push dword [ebp + 0x30]
mov dword [ebp - 0x45c], edx
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x458], esi
push eax
mov dword [ebp - 0x454], edi
call fcn.0049b170
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x464]
mov edi, dword [ebp - 0x4b4]
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 1
push dword [ebp + 0x38]
push 8
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [edi + 4]
call fcn.0070a1c0
add esp, 0x3c
lea ecx, [ebp - 0x428]
mov esi, eax
call fcn.00489460
test esi, esi
jne 0x50f4fd
mov esi, dword [edi + 4]
mov dword [ebp - 0x4c4], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x4bc], 0
nop
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00520480
add esp, 0xc
lea eax, [ebp - 0x4bc]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x4b8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50f441
push dword [ebp - 0x4bc]
lea eax, [ebp - 0x410]
push eax
push dword [edi + 4]
call fcn.0070a210
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x50f426
mov edi, dword [ebp - 0x4b4]
cmp dword [ebp - 0x4bc], eax
ja 0x50f370
test esi, esi
je 0x50f3e8
push esi
call fcn.007091d0
add esp, 4
mov eax, dword [ebp - 0x4b8]
test eax, eax
je 0x50f3f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00481300
lea ecx, [ebp + 0x20]
call fcn.00481300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret 0x34
sub esp, 0x18
mov eax, esp
push 0x35
push str.zip::add_file____failed_to_call_zipWriteInFileInZip__
push eax
call fcn.0050caf0
add esp, 0xc
push edi
jmp 0x50f513
push 1
sub esp, 0x18
mov eax, esp
push 0x2a
push str.zip::add_file____failed_to_call_ReadFile__
push eax
call fcn.0050caf0
add esp, 0xc
lea ecx, [ebp - 0x488]
call fcn.0050be70
jmp 0x50f51e
sub esp, 0x18
mov eax, esp
push 0x2f
push str.zip::add_file____m_zip_file_was_not_initialized
push eax
call fcn.0050caf0
add esp, 0xc
lea ecx, [ebp - 0x4ac]
push 0xffffffffffffffff
call fcn.0050c0e0
push 0x83422c
lea eax, [ebp - 0x4ac]
push eax
call fcn.00520690
call fcn.0052981f
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp + 8]
call fcn.0049b1d0
mov esi, eax
push 0x32
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push str.zip::add_file____failed_to_call_CreateFileA___for
push eax
call fcn.0050caf0
add esp, 0xc
push 1
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push esi
push eax
push ecx
call fcn.00488f00
add esp, 0xc
lea ecx, [ebp - 0x488]
call fcn.0050be70
push 0x83422c
lea eax, [ebp - 0x488]
push eax
call fcn.00520690
sub esp, 0x18
mov ecx, esp
push 0x35
push str.zip::add_file____failed_to_call_zipOpenNewFileInZip__
push ecx
call fcn.0050caf0
add esp, 0xc
push esi
lea ecx, [ebp - 0x488]
call fcn.0050c0e0
push 0x83422c
lea eax, [ebp - 0x488]
push eax
call fcn.00520690
int3