Function at 0x43d1c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x659a18]
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 [0x659a18]
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, 0x6af5d8
lea edi, [esi*4]
push edi
mov dword [esp + 0x1c], edi
call fcn.004a7db0
mov edx, dword [0x659a18]
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 [0x659a18]
mov edx, dword [esp + 0x20]
push ecx
push esi
push 4
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [0x659a18]
push eax
call ebp
push edi
mov dword [esp + 0x4c], eax
call fcn.00470b90
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 0x43d311
mov ebp, dword [esp + 0x10]
cmp dword [ebp + edi*4], 0
je 0x43d308
movsx eax, byte [ebx + 0x1d2]
dec eax
mov dword [esp + 0x1c], 1
je 0x43d2df
dec eax
je 0x43d2c0
dec eax
jne 0x43d308
push 0x1c
call fcn.00470250
add esp, 4
test eax, eax
je 0x43d2fd
mov ecx, dword [ebp + edi*4]
push ecx
mov ecx, eax
call fcn.004ba9e0
jmp 0x43d2ff
push 0x298
call fcn.00470250
add esp, 4
test eax, eax
je 0x43d2fd
mov ecx, dword [ebp + edi*4]
push ecx
mov ecx, eax
call fcn.004baf10
jmp 0x43d2ff
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x43d2fd
mov ecx, dword [ebp + edi*4]
push 0
push ecx
mov ecx, eax
call fcn.004bac90
jmp 0x43d2ff
xor eax, eax
mov edx, dword [ebx + 0x1dc]
mov dword [edx + edi*4], eax
inc edi
cmp edi, esi
jb 0x43d281
mov eax, dword [esp + 0x30]
test eax, eax
je 0x43d3fc
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push eax
mov eax, dword [0x659a18]
push eax
call edi
mov ecx, dword [0x659a18]
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 [0x659a18]
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 0x43d369
mov dword [esp + 0x14], eax
mov edx, dword [0x659a18]
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.00470280
add esp, 0x14
test eax, eax
je 0x43d3b7
push fcn.004c0380
mov dword [eax], esi
push fcn.004bff80
add eax, 4
push esi
push 0xc
push eax
mov dword [esp + 0x34], eax
call fcn.0051c73f
mov eax, dword [esp + 0x20]
jmp 0x43d3b9
xor eax, eax
mov dword [ebx + 0x1d4], eax
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x43d408
mov edi, dword [esp + 0x10]
mov ecx, eax
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov eax, dword [edi]
test eax, eax
je 0x43d3eb
mov ecx, dword [ebx + 0x1d4]
lea edx, [ebx + 0x10]
push edx
push eax
add ecx, ebp
call fcn.004bffa0
mov eax, dword [esp + 0x14]
add edi, 4
add ebp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x43d3d3
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 0x43d496
mov eax, dword [esp + 0x18]
push eax
call fcn.00470b90
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x1d8], eax
mov edx, dword [0x659a18]
push 0
push ecx
push edx
call edi
mov eax, dword [0x659a18]
lea ecx, [esp + 0x38]
push eax
push 1
push 8
push ecx
call ebp
mov edx, dword [esp + 0x4c]
mov eax, dword [0x659a18]
push 0
push edx
push eax
call edi
mov edi, dword [esp + 0x54]
add esp, 0x2c
cmp esi, edi
jge 0x43d461
mov edi, esi
mov ecx, dword [0x659a18]
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 0x43d490
mov ecx, dword [ebx + 0x1d8]
inc eax
cmp eax, esi
mov dword [ecx + eax*4 - 4], 0
jb 0x43d47d
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x10]
mov ecx, 0x6af5d8
push edx
call fcn.004a7de0
mov eax, dword [esp + 0x24]
mov ecx, dword [0x659a18]
push 0
push eax
push ecx
call edi
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
jne 0x43d4d8
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x43d4d8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x43d4d8
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