Function at 0x43d7c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0043d740
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 [0x659a18]
push edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
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 [0x659a18]
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 0x43d86d
push 0
push eax
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x659a18]
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 0x43d847
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmp ebx, eax
jg 0x43d88c
mov ebx, eax
test ebx, ebx
mov word [esi + 0x1d0], bx
jbe 0x43da0d
lea ebp, [ebx*4]
push ebp
call fcn.00470b90
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, 0x6af5d8
call fcn.004a7db0
mov edi, eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x14], edi
je 0x43d98f
push 0
push eax
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp ebx, eax
jge 0x43d904
mov ebp, ebx
mov dword [esp + 0x10], ebp
jmp 0x43d90a
mov dword [esp + 0x10], eax
mov ebp, eax
mov ecx, dword [0x659a18]
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.00470280
add esp, 0x14
test eax, eax
je 0x43d94c
push fcn.004c0380
push fcn.004bff80
lea edi, [eax + 4]
push ebx
push 0xc
push edi
mov dword [eax], ebx
call fcn.0051c73f
jmp 0x43d94e
xor edi, edi
test ebp, ebp
mov dword [esi + 0x1d4], edi
jle 0x43d98f
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 0x43d97e
lea edx, [esi + 0x10]
mov ecx, ebp
push edx
push eax
add ecx, dword [esi + 0x1d4]
call fcn.004bffa0
mov eax, dword [esp + 0x10]
add edi, 4
add ebp, 0xc
dec eax
mov dword [esp + 0x10], eax
jne 0x43d966
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43d9fe
lea eax, [ebx*4]
push eax
call fcn.00470b90
mov dword [esi + 0x1d8], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [0x659a18]
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 0x43d9cb
mov edi, ebx
mov edx, dword [0x659a18]
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 0x43d9fe
mov ecx, dword [esi + 0x1d8]
inc eax
cmp eax, ebx
mov dword [ecx + eax*4 - 4], 0
jb 0x43d9eb
mov edx, dword [esp + 0x14]
mov ecx, 0x6af5d8
push edx
call fcn.004a7de0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret