Function at 0x44f2b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
push ebx
xor ecx, ecx
cmp eax, ecx
push ebp
push esi
push edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
ja 0x44f2e3
cmp dword [esp + 0x40], ecx
jbe 0x44f2ef
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
cmp edx, ecx
jne 0x44f2fb
lea eax, [esp + 0x1c]
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x3c]
cmp esi, ecx
mov ebx, dword [esp + 0x30]
jg 0x44f314
mov ecx, dword [ebx]
push ecx
call fcn.00446dd0
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x38]
shl edx, 7
lea eax, [edx + esi - 1]
xor edx, edx
div esi
mov ebp, dword [esp + 0x34]
mov edi, ebp
add eax, 2
lea ecx, [eax + 2]
imul ecx, esi
mov edx, ecx
mov dword [esp + 0x30], eax
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
or edx, 0xffffffff
xor ecx, ecx
push ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
push edx
xor eax, eax
push ecx
push eax
mov eax, dword [ebx]
push eax
mov dword [esp + 0x50], ecx
call edi
mov edx, dword [ebx]
push 0
lea ecx, [esp + 0x40]
push ecx
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x44]
xor ecx, ecx
cmp eax, ecx
ja 0x44f3b1
jb 0x44f390
cmp dword [esp + 0x40], ecx
ja 0x44f3b1
mov eax, 0x1c2
cmp byte [eax + ebp], 0xee
jne 0x44f3a7
mov edx, dword [eax + ebp + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x44f395
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
mov eax, esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
call fcn.004b4970
or ecx, 0xffffffff
push 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
push ecx
push edx
mov edx, dword [ebx]
push eax
push edx
call edi
mov ecx, dword [esp + 0x30]
inc ecx
imul ecx, esi
push 0
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebx]
push ecx
lea edx, [esi + ebp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
lea edx, [ebp + esi*2 + 0x10000]
mov dword [esp + 0x30], edx
je 0x44f49a
mov ecx, esi
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 4]
test ecx, ecx
ja 0x44f451
jb 0x44f440
cmp dword [eax], 2
jae 0x44f451
mov ecx, dword [ebp + 0x220]
mov dword [eax], ecx
mov edx, dword [ebp + 0x224]
mov dword [eax + 4], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.004b4970
or ecx, 0xffffffff
push 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
push ecx
push edx
mov edx, dword [ebx]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx]
push 0
lea eax, [esp + 0x40]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret