Function at 0x440d50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x67a8cc]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_ftell]
push esi
push edi
mov ebx, ecx
push eax
call ebp
mov dword [ebx + 0x1e0], eax
mov ecx, dword [0x67a8cc]
push ecx
lea edi, [ebx + 0x1d0]
push 1
push 4
push edi
call dword [sym.imp.MSVCRT.dll_fread]
xor esi, esi
add esp, 0x14
mov si, word [edi]
mov ecx, 0x6d07d8
lea edi, [esi*4]
push edi
mov dword [esp + 0x1c], edi
call fcn.004bb1f0
mov edx, dword [0x67a8cc]
mov dword [esp + 0x10], eax
push edx
push 2
lea eax, [esp + 0x38]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x67a8cc]
mov edx, dword [esp + 0x20]
push ecx
push esi
push 4
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [0x67a8cc]
push eax
call ebp
push edi
mov dword [esp + 0x4c], eax
call fcn.00478e60
mov ecx, dword [esp + 0x40]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x1dc], edi
add esp, 0x28
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esi, edi
mov dword [esp + 0x1c], edi
jbe 0x440e9e
mov ebp, dword [esp + 0x10]
cmp dword [ebp + edi*4], 0
je 0x440e95
movsx eax, byte [ebx + 0x1d2]
dec eax
mov dword [esp + 0x1c], 1
je 0x440e6c
dec eax
je 0x440e50
dec eax
jne 0x440e95
push 0x1c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x440e8a
mov ecx, dword [ebp + edi*4]
push ecx
mov ecx, eax
call fcn.004cf860
jmp 0x440e8c
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x440e8a
mov ecx, dword [ebp + edi*4]
push ecx
mov ecx, eax
call fcn.004cfd90
jmp 0x440e8c
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x440e8a
mov ecx, dword [ebp + edi*4]
push 0
push ecx
mov ecx, eax
call fcn.004cfb10
jmp 0x440e8c
xor eax, eax
mov edx, dword [ebx + 0x1dc]
mov dword [edx + edi*4], eax
inc edi
cmp edi, esi
jb 0x440e11
mov eax, dword [esp + 0x30]
test eax, eax
je 0x440f89
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call edi
mov ecx, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
lea edx, [esp + 0x3c]
push 8
push edx
call ebp
mov eax, dword [esp + 0x48]
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call edi
mov eax, dword [esp + 0x50]
add esp, 0x28
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x440ef6
mov dword [esp + 0x14], eax
mov edx, dword [0x67a8cc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push eax
push 4
push ecx
call ebp
lea edx, [esi + esi*2]
lea eax, [edx*4 + 4]
push eax
call fcn.004784e0
add esp, 0x14
test eax, eax
je 0x440f44
push fcn.004d56e0
mov dword [eax], esi
push fcn.004d52e0
add eax, 4
push esi
push 0xc
push eax
mov dword [esp + 0x34], eax
call fcn.0053230f
mov eax, dword [esp + 0x20]
jmp 0x440f46
xor eax, eax
mov dword [ebx + 0x1d4], eax
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x440f95
mov edi, dword [esp + 0x10]
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov eax, dword [edi]
test eax, eax
je 0x440f78
mov ecx, dword [ebx + 0x1d4]
lea edx, [ebx + 0x10]
push edx
push eax
add ecx, ebp
call fcn.004d5300
mov eax, dword [esp + 0x14]
add edi, 4
add ebp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x440f60
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x441023
mov eax, dword [esp + 0x18]
push eax
call fcn.00478e60
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x1d8], eax
mov edx, dword [0x67a8cc]
push 0
push ecx
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x38]
push eax
push 1
push 8
push ecx
call ebp
mov edx, dword [esp + 0x4c]
mov eax, dword [0x67a8cc]
push 0
push edx
push eax
call edi
mov edi, dword [esp + 0x54]
add esp, 0x2c
cmp esi, edi
jge 0x440fee
mov edi, esi
mov ecx, dword [0x67a8cc]
mov edx, dword [ebx + 0x1d8]
push ecx
push edi
push 4
push edx
call ebp
add esp, 0x10
cmp edi, esi
mov eax, edi
jae 0x44101d
mov ecx, dword [ebx + 0x1d8]
inc eax
cmp eax, esi
mov dword [ecx + eax*4 - 4], 0
jb 0x44100a
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x10]
mov ecx, 0x6d07d8
push edx
call fcn.004bb220
mov eax, dword [esp + 0x24]
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call edi
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x441065
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x441065
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x441065
mov eax, dword [ebx + 8]
and al, 0xfe
mov dword [ebx + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret