Function at 0x414260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
test byte [eax], 8
push edi
mov dword [ebp - 4], eax
jne 0x414288
mov dword [0x4a4b38], 0x6f
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x18]
push eax
push esi
call fcn.004147d0
add esp, 8
test eax, eax
je 0x41427f
lea eax, [esi + 0x1c]
push eax
push esi
call fcn.004147d0
add esp, 8
test eax, eax
je 0x41427f
lea eax, [esi + 0x20]
push eax
push esi
call fcn.004147d0
add esp, 8
test eax, eax
je 0x41427f
lea eax, [esi + 0x24]
push eax
push esi
call fcn.004147d0
add esp, 8
test eax, eax
je 0x41427f
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4142e4
push 1
lea edx, [ebp + 8]
push edx
push esi
call ecx
add esp, 0xc
jmp 0x4142f9
mov eax, dword [eax + 0x38]
push eax
push 1
lea ecx, [ebp + 8]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x414311
pop edi
pop esi
mov dword [0x4a4b38], 0x66
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, 0xff
mov edi, eax
and edi, 7
and eax, 0x40
inc edi
test cl, 0x80
mov dword [esi + 0x28], eax
je 0x4143d1
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x414347
mov ecx, dword [esi + 0x30]
test ecx, ecx
jne 0x414347
push eax
call fcn.004394d0
add esp, 4
mov ecx, edi
mov edx, 1
shl edx, cl
push 0
push edx
call fcn.00439450
mov dword [esi + 0x2c], eax
mov ecx, dword [eax]
add esp, 8
xor ebx, ebx
test ecx, ecx
jle 0x4143d1
xor edi, edi
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x414380
push 3
lea eax, [ebp + 8]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x414395
mov ecx, dword [eax + 0x38]
push ecx
push 3
lea edx, [ebp + 8]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 3
jne 0x4142fe
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
mov dl, byte [ebp + 8]
mov byte [ecx + edi], dl
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
mov dl, byte [ebp + 9]
mov byte [ecx + edi + 1], dl
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 8]
mov dl, byte [ebp + 0xa]
mov byte [ecx + edi + 2], dl
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
inc ebx
add edi, 3
cmp ebx, ecx
jl 0x414368
mov ecx, dword [esi + 0x30]
xor ebx, ebx
cmp ecx, ebx
je 0x4143f1
mov eax, dword [esi + 0x14]
inc eax
lea edx, [eax + eax*4]
shl edx, 3
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
jmp 0x4143fc
push 0x28
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x414416
pop edi
pop esi
mov dword [0x4a4b38], 0x6d
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x30]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*8]
push 0x18
lea eax, [esi + 0x18]
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x41444a
mov edx, dword [eax + 8]
mov eax, dword [eax]
push edx
push eax
call fcn.00439450
add esp, 8
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x24]
inc dword [esi + 0x14]
mov edx, dword [ebp - 4]
push esi
mov dword [edx + 0x34], ecx
call fcn.00414960
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret