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

Disassembly:
push 0xffffffffffffffff
push 0x598972
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x6204e0]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x444c4d
lea ecx, [esp + 0x38]
push ecx
call fcn.0042a4c0
push eax
lea edx, [esp + 0x24]
push str.CreateFile_error:
push edx
mov dword [esp + 0xa4], ebx
call fcn.0040c620
add esp, 0x10
push edi
push ebx
push eax
mov ecx, 0x6187d0
mov byte [esp + 0xa0], 1
call fcn.0040b880
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x444c21
mov eax, dword [esp + 0x20]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x444dae
mov ecx, dword [esp + 0x3c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x444dae
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x444d2e
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x18]
cdq
cmp ecx, edx
jg 0x444d2e
mov ecx, dword [esp + 0x14]
jl 0x444c83
cmp ecx, eax
ja 0x444d2e
mov esi, dword [esp + 0xa0]
mov edx, dword [esi]
lea eax, [ecx + 1]
push eax
push edx
mov dword [esi + 4], eax
call sub.MSVCR90.dll_realloc
mov edx, dword [esp + 0x1c]
add esp, 8
push ebx
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444cdc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, ecx
jne 0x444cdc
cmp edx, dword [esp + 0x18]
jne 0x444cdc
mov eax, dword [esi]
push edi
mov byte [ecx + eax], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x444db0
lea ecx, [esp + 0x70]
push ecx
call fcn.0042a4c0
push eax
lea edx, [esp + 0x5c]
push str.ReadFile_error:
push edx
mov dword [esp + 0xa4], 4
call fcn.0040c620
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x6187d0
mov byte [esp + 0xa0], 5
call fcn.0040b880
lea ecx, [esp + 0x54]
call fcn.0040b300
lea ecx, [esp + 0x70]
call fcn.0040b300
jmp 0x444da7
lea eax, [esp + 0x38]
push eax
call fcn.0042a4c0
push eax
lea ecx, [esp + 0x24]
push str.GetFileSizeEx_error:
push ecx
mov dword [esp + 0xa4], 2
call fcn.0040c620
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x6187d0
mov byte [esp + 0xa0], 3
call fcn.0040b880
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x444d84
mov edx, dword [esp + 0x20]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x444da7
mov eax, dword [esp + 0x3c]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x88
ret