Function at 0x41e6f6
Capabilities:
Read file on windows

Disassembly:
push 0xfc
mov eax, 0x4cb864
call fcn.004981ed
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], 1
call fcn.0041e54b
cmp eax, ebx
mov dword [ebp - 0x10], eax
jle 0x41e948
cmp dword [esi + 0x18], 8
jb 0x41e73e
mov eax, dword [esi + 4]
jmp 0x41e741
lea eax, [esi + 4]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [0x50ca88]
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov dword [ebp - 4], 1
jne 0x41e811
lea eax, [ebp - 0x108]
push eax
call fcn.00405267
push 0x4e231c
push ecx
push esi
push ecx
lea eax, [ebp - 0x100]
push str.Error_opening__
push eax
mov byte [ebp - 4], 2
call fcn.00405d69
add esp, 0xc
push eax
call fcn.00405eb8
add esp, 0xc
push eax
call fcn.00405d69
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x108]
call fcn.004052f9
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x41e7c4
mov eax, dword [eax + 4]
jmp 0x41e7c7
add eax, 4
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00425a3b
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 4
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x41e7f1
mov eax, dword [eax + 4]
jmp 0x41e7f4
add eax, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.0048ec72
push 0x4f7698
lea eax, [ebp - 0x24]
push eax
call fcn.0048febc
push dword [ebp - 0x10]
push edi
call fcn.00417ded
mov dword [ebp - 0x18], ebx
mov ebx, dword [edi + 4]
lea esi, [ebp - 0x20]
call fcn.00418dc9
call fcn.00417ee0
mov esi, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e8cd
lea eax, [ebp - 0x108]
push eax
call fcn.00405267
push 0x4e231c
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push ecx
push str.Error_reading__
push eax
mov byte [ebp - 4], 6
call fcn.00405d69
add esp, 0xc
push eax
call fcn.00405eb8
add esp, 0xc
push eax
call fcn.00405d69
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x108]
call fcn.004052f9
mov byte [ebp - 4], 7
cmp dword [eax + 0x18], 8
jb 0x41e8a6
mov eax, dword [eax + 4]
jmp 0x41e8a9
add eax, 4
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00425a3b
push eax
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 8
call fcn.004167e3
add esp, 0x10
mov byte [ebp - 4], 9
jmp 0x41e7e6
cmp dword [ebp - 0x18], esi
je 0x41e939
lea eax, [ebp - 0x108]
push eax
call fcn.00405267
push 0x4e231c
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push ecx
push str.Invalid_number_of_bytes_read_from__
push eax
mov byte [ebp - 4], 0xa
call fcn.00405d69
add esp, 0xc
push eax
call fcn.00405eb8
add esp, 0xc
push eax
call fcn.00405d69
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x108]
call fcn.004052f9
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0xb
call fcn.004167e3
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
jmp 0x41e7e6
cmp dword [ebp - 0x14], 0xffffffff
je 0x41e948
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004982c5
ret