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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0045e410
cmp byte [eax + 0xb], 0
jge 0x4619bb
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x461baf
cmp esi, 0xffffffff
je 0x461baf
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x461a15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0xb], 0
jge 0x461a0b
mov edi, dword [edi]
mov ecx, str.Couldnt_get_file__s_size__error__d
jmp 0x461bc2
cmp dword [ebp - 0x1c], 0
je 0x461a36
cmp byte [edi + 0xb], 0
jge 0x461a23
mov edi, dword [edi]
push edi
push str.File__s_size_is_too_huge
call fcn.004631b0
add esp, 8
jmp 0x461bcd
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [ebp - 4], ecx
sub dword [ebp - 4], edx
cmp eax, dword [ebp - 4]
jbe 0x461b3f
sub edx, ecx
add edx, eax
mov eax, dword [ebx + 8]
sub eax, ecx
mov dword [ebp - 0xc], edx
cmp edx, eax
jbe 0x461b15
mov eax, dword [ebp - 4]
test eax, eax
je 0x461a79
lea edx, [eax + eax]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
jmp 0x461a80
mov dword [ebp - 8], 1
add eax, edx
mov edx, dword [ebp - 8]
cmp edx, eax
cmovb edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0x461aa9
push 0
push 0
push 0
push 0
push 0
push edx
call fcn.0049f9b0
mov ecx, dword [ebx + 4]
add esp, 0x18
jmp 0x461aab
xor eax, eax
mov edx, dword [ebx]
mov dword [ebp - 4], eax
cmp edx, ecx
jne 0x461abb
mov ecx, eax
mov dword [ebp - 0x14], eax
jmp 0x461ad3
sub ecx, edx
push ecx
push edx
push eax
mov dword [ebp - 0x14], ecx
call fcn.005d67e0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x461ae9
push eax
push 0
push ecx
call fcn.005d6d60
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebx]
mov dword [ebp - 0x14], edx
test eax, eax
je 0x461b03
push eax
call fcn.0044d750
mov edx, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [ebx], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 4], edx
jmp 0x461b46
mov eax, dword [ebx]
mov dword [ebp - 4], eax
test edx, edx
je 0x461b35
push edx
push 0
push ecx
call fcn.005d6d60
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], eax
add edx, ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], edx
jmp 0x461b46
add eax, edx
mov ecx, edx
mov dword [ebx + 4], eax
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x461b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0xb], 0
jge 0x461b6a
mov edi, dword [edi]
push eax
push edi
push str.Couldnt_read_file__s__error__d
jmp 0x461bc5
cmp dword [ebp - 0x10], ebx
jne 0x461b7c
mov bl, 1
jmp 0x461bcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0xb], 0
jge 0x461b8a
mov edi, dword [edi]
push eax
push ebx
push edi
push dword [ebp - 0x10]
push str._u_bytes_read_from_file__s___u_expected__error__d
call fcn.004631b0
add esp, 0x14
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0xb], 0
jge 0x461bbd
mov edi, dword [edi]
mov ecx, str.Couldnt_open_file__s__error__d
push eax
push edi
push ecx
call fcn.004631b0
add esp, 0xc
xor bl, bl
test esi, esi
je 0x461bdf
cmp esi, 0xffffffff
je 0x461bdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret