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

Disassembly:
push 0xffffffffffffffff
push 0x589d36
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp ebx, 0xffffffff
jne 0x4442d7
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x24]
push ecx
push ebx
xor edi, edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x444518
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, eax
or edx, ecx
je 0x444518
cmp ecx, ebp
jg 0x444518
jl 0x44431c
cmp eax, 0x10000
ja 0x444518
inc eax
push eax
call fcn.004a1f7a
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x444518
mov eax, dword [esp + 0x24]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, ebp
jne 0x44435b
push esi
call fcn.004a4f88
add esp, 4
jmp 0x444518
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov byte [edx + esi], 0
call fcn.00402fe0
mov dword [esp + 0x38], ebp
push esi
call fcn.004a4f88
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
add esp, 4
cmp eax, ebp
je 0x4443a8
mov ecx, dword [esp + 0x40]
cmp dword [ecx - 0xc], ebp
jl 0x4443a8
push eax
push ecx
call fcn.004a4912
add esp, 8
cmp eax, ebp
je 0x4443a8
sub eax, dword [esp + 0x40]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4443bf
mov dword [esp + 0x38], 0xffffffff
lea edx, [esp + 0x40]
push edx
call fcn.00403090
jmp 0x444518
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
lea edx, [esp + 0x44]
call fcn.00408930
mov byte [esp + 0x38], 1
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
mov esi, dword [edx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x444428
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x44441d
mov ebx, dword [eax]
cmp ebx, dword [esi]
jne 0x44441d
call fcn.004066f0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x444412
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x48]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x444428
mov edi, dword [ecx - 0xc]
push ecx
mov eax, edx
call fcn.004033b0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44444d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
add ebp, dword [edx - 0xc]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x1c]
push edx
sub ecx, ebp
lea edx, [esp + 0x44]
call fcn.0040c330
mov byte [esp + 0x38], 3
mov ebx, dword [esp + 0x4c]
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4444c2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4444b7
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4444b7
call fcn.004066f0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4444b0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [ebx], ebp
jmp 0x4444c2
mov edi, dword [ecx - 0xc]
push ecx
mov eax, ebx
call fcn.004033b0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4444e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 1
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x444514
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret