Function at 0x41c270
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d93e
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 8], 0xdb
je 0x41c2a4
xor ebp, ebp
push ebp
call fcn.0041c110
add esp, 4
jmp 0x41c2a6
xor ebp, ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x41c2c0
mov cl, byte [esi + 9]
test cl, cl
jne 0x41c2bd
push eax
call fcn.0045ccbf
add esp, 4
mov dword [esi + 0xc], ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov byte [esi + 9], 0
call fcn.00417560
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0xa0], ebp
call fcn.00417890
mov edi, dword [esp + 0xa8]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00419490
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x41c3cd
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41c360
test edi, edi
je 0x41c3c2
lea ecx, [esp + 0x18]
call fcn.004146b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 1
call fcn.004159e0
mov esi, dword [edi]
lea ecx, [esp + 0x18]
call fcn.00443b00
push eax
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0
call fcn.004149a0
jmp 0x41c3c2
test ebp, ebp
jne 0x41c389
push ebp
push ebx
call fcn.0043ca40
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00417620
mov al, 1
jmp 0x41c4af
lea eax, [ebp + 4]
push eax
call fcn.0045d5c0
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 0xc], edi
jne 0x41c3e8
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x41c3c2
mov edx, dword [esi]
push str.Out_of_memory_when_loading_Unicode_file_into_data_buffer.
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
push ebp
push str.fileSize
mov ecx, esi
call dword [eax + 0x2c]
push 0
push ebx
call fcn.0043ca40
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00417620
xor al, al
jmp 0x41c4af
lea ecx, [ebp + 4]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
push ebx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0xa8]
mov byte [esp + 0x13], 1
test eax, eax
jne 0x41c471
test esi, esi
je 0x41c46c
lea ecx, [esp + 0x18]
call fcn.004146b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 2
call fcn.004159e0
mov edi, dword [esi]
lea ecx, [esp + 0x18]
call fcn.00443b00
push eax
mov ecx, esi
call dword [edi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0
call fcn.004149a0
mov byte [esp + 0x13], 0
cmp dword [esp + 0x14], ebp
je 0x41c48c
test esi, esi
je 0x41c487
mov edx, dword [esi]
push str.Failed_to_read_the_entire_file
mov ecx, esi
call dword [edx + 0x10]
mov byte [esp + 0x13], 0
push 0
push ebx
call fcn.0043ca40
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x9c], 0xffffffff
call fcn.00417620
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8