Function at 0x441350
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004412d0
mov eax, dword [esi + 0x1e0]
xor edi, edi
mov dword [esi + 0x1d4], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1dc], edi
mov ecx, dword [0x67a8cc]
push edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push edx
lea eax, [esi + 0x1d0]
push 1
push 4
push eax
call ebp
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x34]
push eax
push 2
push 4
push ecx
call ebp
add esp, 0x2c
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edx
lea edi, [esp + 0x20]
mov dword [esp + 0x2c], edx
lea ebx, [esp + 0x18]
mov dword [esp + 0x10], 2
mov eax, dword [ebx]
test eax, eax
je 0x4413fd
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 8
push edi
call ebp
add esp, 0x1c
mov eax, dword [esp + 0x10]
add ebx, 4
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4413d7
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmp ebx, eax
jg 0x44141c
mov ebx, eax
test ebx, ebx
mov word [esi + 0x1d0], bx
jbe 0x44159d
lea ebp, [ebx*4]
push ebp
call fcn.00478e60
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x1dc], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x6d07d8
call fcn.004bb1f0
mov edi, eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x14], edi
je 0x44151f
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp ebx, eax
jge 0x441494
mov ebp, ebx
mov dword [esp + 0x10], ebp
jmp 0x44149a
mov dword [esp + 0x10], eax
mov ebp, eax
mov ecx, dword [0x67a8cc]
push ecx
push ebp
push 4
push edi
call dword [sym.imp.MSVCRT.dll_fread]
lea edx, [ebx + ebx*2]
lea eax, [edx*4 + 4]
push eax
call fcn.004784e0
add esp, 0x14
test eax, eax
je 0x4414dc
push fcn.004d56e0
push fcn.004d52e0
lea edi, [eax + 4]
push ebx
push 0xc
push edi
mov dword [eax], ebx
call fcn.0053230f
jmp 0x4414de
xor edi, edi
test ebp, ebp
mov dword [esi + 0x1d4], edi
jle 0x44151f
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
test eax, eax
je 0x44150e
lea edx, [esi + 0x10]
mov ecx, ebp
push edx
push eax
add ecx, dword [esi + 0x1d4]
call fcn.004d5300
mov eax, dword [esp + 0x10]
add edi, 4
add ebp, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x4414f6
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x44158e
lea eax, [ebx*4]
push eax
call fcn.00478e60
mov dword [esi + 0x1d8], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x38]
add esp, 0x10
cmp ebx, edi
jge 0x44155b
mov edi, ebx
mov edx, dword [0x67a8cc]
mov eax, dword [esi + 0x1d8]
push edx
push edi
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp edi, ebx
mov eax, edi
jae 0x44158e
mov ecx, dword [esi + 0x1d8]
inc eax
cmp eax, ebx
mov dword [ecx + eax*4 - 4], 0
jb 0x44157b
mov edx, dword [esp + 0x14]
mov ecx, 0x6d07d8
push edx
call fcn.004bb220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret