Function at 0x50b180
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c0c10
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xc0], eax
cmp dword [eax], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xb0], esi
jne 0x50b1cd
mov al, 1
jmp 0x50b6c9
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x50b1d7
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0xe8]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xe8], vtable.std::_Func_impl_no_alloc_bool____cdecl___void____bool__void__.0
push eax
mov dword [ebp - 0xe4], 0x537900
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x58], 0
call fcn.00451600
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x58], eax
test ecx, ecx
je 0x50b250
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0xe8]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0xc4], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x50b608
cmp eax, 0xffffffff
je 0x50b608
push 0x34
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
lea eax, [ebp - 0x54]
push 0
push eax
movups xmmword [ebp - 0xa8], xmm0
movups xmmword [ebp - 0x98], xmm0
call fcn.00679eb0
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x50b58e
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x40]
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x50b58e
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x30], eax
movzx eax, word [ebp - 0x1e]
dec eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], eax
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x38], eax
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xb8]
movups xmm0, xmmword [ebp - 0x44]
mov dword [ebp - 0x28], 0
push eax
push dword [ebp - 0x84]
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x88], 0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [ebp - 0x98], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50b34b
xor eax, eax
cmp dword [ebp - 0xb4], eax
setg al
jmp 0x50b34d
xor eax, eax
cmp dword [edi + 0x14], 0x10
jb 0x50b355
mov edi, dword [edi]
push eax
push 0
push 0
push 0
push 8
push 0xfffffffffffffff1
push 0
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xc0]
push edi
push dword [eax]
call fcn.00567e50
add esp, 0x44
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x50b3b8
call fcn.004486f0
lea ecx, [ebp - 0xb4]
push ecx
push esi
push str.Unable_to_create_file__0__in_archive._Zip_error:__1
push ecx
mov ecx, eax
call fcn.0050c230
mov byte [ebp - 0xa9], 4
jmp 0x50b67c
push 0x2023
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00677616
add esp, 4
test eax, eax
je 0x50b6e6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
push 0x2000
push 0
push edi
mov dword [edi - 4], eax
lea eax, [edi + 0x2000]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
call fcn.00679eb0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0xbc], 0
nop dword [eax + eax]
push 0
lea eax, [ebp - 0xbc]
push eax
push 0x2000
push edi
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50b4e0
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x50b4a1
push eax
mov eax, dword [ebp - 0xc0]
push edi
push dword [eax]
call fcn.005684e0
add esp, 0xc
mov dword [ebp - 0xb4], eax
test eax, eax
js 0x50b47a
jne 0x50b551
cmp dword [ebp - 0xbc], 0
ja 0x50b420
jmp 0x50b4a1
call fcn.004486f0
lea ecx, [ebp - 0xb4]
push ecx
push esi
push str.Unable_to_write_file__0__into_archive._Zip_error:__1
push ecx
mov ecx, eax
call fcn.0050c230
cmp dword [ebp - 0xb4], 0
jne 0x50b551
mov eax, dword [ebp - 0xc0]
push dword [eax]
call fcn.005674b0
add esp, 4
mov dword [ebp - 0xb4], eax
test eax, eax
jns 0x50b4d7
call fcn.004486f0
lea ecx, [ebp - 0xb4]
push ecx
push esi
push str.Unable_to_close_file__0__in_archive._Zip_error:__1
push ecx
mov ecx, eax
call fcn.0050c230
jmp 0x50b551
mov byte [ebp - 0xa9], 0
jmp 0x50b558
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00531420
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0xb0]
mov ecx, esi
push 0x751d28
push 2
call fcn.00454910
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x50b551
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50b547
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50b6e6
push edx
push ecx
call fcn.006779b1
add esp, 8
mov byte [ebp - 0xa9], 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
sub ecx, edi
cmp ecx, 0x1000
jb 0x50b57f
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x50b6e6
mov edi, edx
push ecx
push edi
call fcn.006779b1
add esp, 8
jmp 0x50b67c
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00531420
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0xb0]
mov ecx, esi
push str.Unable_to_get_information_about_file__0_._Error:__1
push 2
call fcn.00454910
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x50b5ff
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50b5f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50b6e6
push edx
push ecx
call fcn.006779b1
add esp, 8
mov byte [ebp - 0xa9], 4
jmp 0x50b67c
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00531420
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0xb0]
mov ecx, esi
push str.Unable_to_open_file__0__for_compression._Error:__1
push 2
call fcn.00454910
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x50b675
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50b66b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50b6e6
push edx
push ecx
call fcn.006779b1
add esp, 8
mov byte [ebp - 0xa9], 3
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x50b6ab
cmp eax, 0xffffffff
je 0x50b6ab
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x50b6c3
mov dword [ebp - 0xb0], eax
lea edx, [ebp - 0xb0]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x50b6c3
mov esi, dword [ecx]
lea eax, [ebp - 0x7c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0xa9]
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.006773ff
mov esp, ebp
pop ebp
ret 8
call fcn.00682da2
int3