Function at 0x42aec0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
call fcn.0042c640
test eax, eax
jne 0x42aeea
mov eax, dword [esi + 0xc4]
push 0x24
push eax
call fcn.00470260
add esp, 8
mov dword [esi + 0xc4], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [0x659a18]
push ebx
push ebp
push edi
push 0
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
lea ebp, [esi + 0x1e4]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [ebp], 0
mov eax, dword [0x659a18]
push eax
push 1
push 2
push ebp
call ebx
mov edi, dword [ebp]
lea eax, [edi*8]
sub eax, edi
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 4]
push edx
call fcn.00470280
add esp, 0x20
test eax, eax
je 0x42af66
push 0x417750
mov dword [eax], edi
push 0x417720
add eax, 4
push edi
push 0x54
push eax
mov dword [esp + 0x30], eax
call fcn.0051c73f
mov eax, dword [esp + 0x1c]
jmp 0x42af68
xor eax, eax
mov dword [esi + 0x1ec], eax
mov eax, dword [ebp]
shl eax, 2
push eax
call fcn.00470b90
mov ecx, dword [ebp]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x1f0], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
mov ecx, 0x6af5d8
shl eax, 2
push eax
call fcn.004a7db0
mov ecx, dword [0x659a18]
mov edx, dword [ebp]
push ecx
push edx
push 4
push eax
mov dword [esp + 0x2c], eax
call ebx
mov eax, dword [0x659a18]
lea ecx, [esp + 0x20]
push eax
push 1
push 4
push ecx
mov dword [esp + 0x30], 0
call ebx
mov edx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push edx
call edi
add esp, 0x24
mov ecx, esi
push eax
call fcn.0043b300
cmp dword [0x659958], 0x1a
jl 0x42b01a
mov ecx, dword [0x659a18]
lea eax, [esi + 0x200]
push 0x14
push eax
push ecx
call edi
add esp, 4
push eax
call fcn.00472400
add esp, 0xc
mov edx, dword [0x659a18]
push edx
call edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp]
add esp, 4
xor edi, edi
test eax, eax
jle 0x42b0ad
xor ebx, ebx
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xf0]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov eax, dword [edx + edi*4]
mov edx, dword [esi + 0x1ec]
mov ecx, ebx
push eax
add ecx, edx
call fcn.00427fe0
cmp dword [0x659958], 0x19
jl 0x42b0a2
mov ecx, dword [esi + 0x1ec]
test byte [ebx + ecx + 0x1c], 1
je 0x42b0a2
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x42b097
mov edx, dword [esi + 0x1ec]
push 1
lea ecx, [ebx + edx + 0x20]
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x42b099
xor eax, eax
mov edx, dword [esi + 0x1f0]
mov dword [edx + edi*4], eax
mov eax, dword [ebp]
inc edi
add ebx, 0x54
cmp edi, eax
jl 0x42b035
mov eax, dword [esi + 0x1ec]
mov ecx, dword [0x659a38]
test dword [eax + 0x1c], ecx
je 0x42b131
mov edx, dword [ebp]
shl edx, 2
push edx
call fcn.00470b90
mov ecx, dword [ebp]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x1f4], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
xor edi, edi
test eax, eax
jle 0x42b131
xor ebx, ebx
push 0x24
call fcn.00470250
add esp, 4
test eax, eax
je 0x42b11a
mov ecx, dword [esi + 0x1ec]
push 1
lea edx, [ebx + ecx + 0x44]
mov ecx, eax
push edx
call fcn.00489020
jmp 0x42b11c
xor eax, eax
mov ecx, dword [esi + 0x1f4]
inc edi
add ebx, 0x54
mov dword [ecx + edi*4 - 4], eax
mov eax, dword [ebp]
cmp edi, eax
jl 0x42b0f6
mov edx, dword [esp + 0x1c]
mov ecx, 0x6af5d8
push edx
call fcn.004a7de0
mov eax, dword [esi + 0x1e0]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x42b165
xor ecx, ecx
mov cx, word [eax + 0x2a]
mov dword [esi + 0x1e8], ecx
mov dl, byte [eax + 0x2c]
and dl, 1
mov byte [esi + 0x1f8], dl
mov word [esi + 0x1fa], 0
mov eax, dword [0x659958]
cmp eax, 0x18
jl 0x42b182
mov al, byte [esp + 4]
mov byte [esi + 0x1f8], al
mov ecx, dword [esp + 8]
mov edx, dword [0x659a18]
push 0
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
pop esi
add esp, 8
ret 8