Function at 0x41e810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx + 0x48]
test byte [eax], 8
mov dword [ebp - 0xc], eax
jne 0x41e82e
mov dword [ebx + 0x40], 0x6f
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebx + 0x1c]
push eax
mov esi, ebx
call fcn.0041ed00
add esp, 4
test eax, eax
je 0x41ea5f
lea eax, [ebx + 0x20]
push eax
call fcn.0041ed00
add esp, 4
test eax, eax
je 0x41ea5f
lea eax, [ebx + 0x24]
push eax
call fcn.0041ed00
add esp, 4
test eax, eax
je 0x41ea5f
lea eax, [ebx + 0x28]
push eax
call fcn.0041ed00
add esp, 4
test eax, eax
je 0x41ea5f
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx + 0x3c]
push edi
xor edi, edi
cmp eax, edi
je 0x41e89c
push 1
lea ecx, [ebp - 4]
push ecx
push ebx
call eax
add esp, 0xc
jmp 0x41e8b0
mov edx, dword [ecx + 0x38]
push edx
push 1
lea eax, [ebp - 4]
push 1
push eax
call sub.MSVCR90.dll_fread
add esp, 0x10
mov esi, dword [ebx + 0x30]
cmp eax, 1
je 0x41e8cf
mov dword [ebx + 0x40], 0x66
call fcn.0041f640
mov dword [ebx + 0x30], edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 4]
mov ecx, eax
and ecx, 7
shr eax, 6
inc ecx
and eax, 1
mov dword [ebp - 8], ecx
mov dword [ebx + 0x2c], eax
cmp esi, edi
je 0x41e8f1
call fcn.0041f640
mov dword [ebx + 0x30], edi
test byte [ebp - 4], 0x80
je 0x41e988
mov ecx, dword [ebp - 8]
push edi
mov edi, 1
shl edi, cl
call fcn.0041f5a0
add esp, 4
mov dword [ebx + 0x30], eax
test eax, eax
je 0x41ea28
xor edi, edi
cmp dword [eax], edi
jbe 0x41e986
xor esi, esi
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x41e939
push 3
lea edx, [ebp - 4]
push edx
push ebx
call ecx
add esp, 0xc
jmp 0x41e94d
mov eax, dword [eax + 0x38]
push eax
push 3
lea ecx, [ebp - 4]
push 1
push ecx
call sub.MSVCR90.dll_fread
add esp, 0x10
cmp eax, 3
jne 0x41e9ae
mov edx, dword [ebx + 0x30]
mov eax, dword [edx + 0xc]
movzx ecx, byte [ebp - 4]
mov byte [esi + eax], cl
mov edx, dword [ebx + 0x30]
mov eax, dword [edx + 0xc]
movzx ecx, byte [ebp - 3]
mov byte [eax + esi + 1], cl
mov edx, dword [ebx + 0x30]
movzx ecx, byte [ebp - 2]
mov eax, dword [edx + 0xc]
mov byte [eax + esi + 2], cl
mov edx, dword [ebx + 0x30]
inc edi
add esi, 3
cmp edi, dword [edx]
jb 0x41e921
xor edi, edi
mov eax, dword [ebx + 0x34]
cmp eax, edi
je 0x41e9cc
mov ecx, dword [ebx + 0x18]
inc ecx
push eax
mov esi, 0x24
call fcn.0041f7f0
add esp, 4
cmp eax, edi
je 0x41ea28
mov dword [ebx + 0x34], eax
jmp 0x41e9dd
mov esi, dword [ebx + 0x30]
call fcn.0041f640
pop edi
mov dword [ebx + 0x40], 0x66
mov dword [ebx + 0x30], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x24
call sub.MSVCR90.dll_malloc
add esp, 4
mov dword [ebx + 0x34], eax
cmp eax, edi
je 0x41ea28
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x1c]
lea eax, [eax + eax*8]
lea esi, [ecx + eax*4]
mov dword [esi], edx
mov eax, dword [ebx + 0x20]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 0x24]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0x28]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x30]
mov dword [esi + 0x14], ecx
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x41ea39
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
push edx
call fcn.0041f5a0
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
jne 0x41ea37
pop edi
mov dword [ebx + 0x40], 0x6d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [ebx + 0x28]
imul eax, dword [ebx + 0x24]
inc dword [ebx + 0x18]
mov dword [ecx + 0x34], eax
mov eax, ebx
call fcn.0041ee10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret