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

Disassembly:
mov eax, 0x4b7e5c
call fcn.0049e324
sub esp, 0x124
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp - 0x130]
movzx eax, byte [eax + 4]
cmp eax, 0xdb
je 0x41c75f
push 0
call fcn.0041c25e
pop ecx
mov eax, dword [ebp - 0x130]
cmp dword [eax + 8], 0
je 0x41c79e
mov eax, dword [ebp - 0x130]
movzx eax, byte [eax + 5]
test eax, eax
jne 0x41c794
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 8]
mov dword [ebp - 0x120], eax
push dword [ebp - 0x120]
call fcn.0047e950
pop ecx
mov eax, dword [ebp - 0x130]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x130]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x130]
and dword [eax + 0x10], 0
mov eax, dword [ebp - 0x130]
and byte [eax + 5], 0
lea ecx, [ebp - 0x7c]
call fcn.00418897
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.00418bb6
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.004306c3
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41c808
and byte [ebp - 0x121], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov al, byte [ebp - 0x121]
jmp 0x41ca34
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41c88c
cmp dword [ebp + 0xc], 0
je 0x41c862
lea ecx, [ebp - 0x9c]
call fcn.0041aa17
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.0041bbf3
lea ecx, [ebp - 0x9c]
call fcn.00419db6
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.0041aba9
push 0
push dword [ebp - 0x10]
call fcn.00436fc2
pop ecx
pop ecx
and byte [ebp - 0x122], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov al, byte [ebp - 0x122]
jmp 0x41ca34
cmp dword [ebp - 0x1c], 0
jne 0x41c8bc
push 0
push dword [ebp - 0x10]
call fcn.00436fc2
pop ecx
pop ecx
mov byte [ebp - 0x123], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov al, byte [ebp - 0x123]
jmp 0x41ca34
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call fcn.0047e916
pop ecx
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x128]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
push 0
mov eax, dword [ebp - 0x130]
push dword [eax + 8]
call fcn.0049ce00
add esp, 0xc
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x1c]
add eax, 4
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x10], eax
and dword [ebp - 0x80], 0
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x130]
push dword [eax + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 1
cmp dword [ebp - 0x14], 0
jne 0x41c9eb
cmp dword [ebp + 0xc], 0
je 0x41c9e7
lea ecx, [ebp - 0xb8]
call fcn.0041aa17
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.0041bbf3
lea ecx, [ebp - 0xb8]
call fcn.00419db6
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
push dword [ebp + 8]
push str.filename
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
lea ecx, [ebp - 0x11c]
call fcn.00418897
mov byte [ebp - 4], 3
lea eax, [ebp - 0x11c]
push eax
call fcn.00430369
pop ecx
lea ecx, [ebp - 0x11c]
call fcn.004191bc
push eax
push str.current_dir
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x11c]
call fcn.0041896f
and byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0041aba9
and byte [ebp - 0x15], 0
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x1c]
je 0x41ca0d
cmp dword [ebp + 0xc], 0
je 0x41ca09
push str.Failed_to_read_the_entire_file
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
call dword [eax + 0x10]
and byte [ebp - 0x15], 0
push 0
push dword [ebp - 0x10]
call fcn.00436fc2
pop ecx
pop ecx
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x129], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0041896f
mov al, byte [ebp - 0x129]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8