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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43b339
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0xdb
je 0x407cc4
xor ebx, ebx
push ebx
call fcn.00403580
add esp, 4
jmp 0x407cc6
xor ebx, ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x407ce0
mov cl, byte [esi + 5]
test cl, cl
jne 0x407cdd
push eax
call fcn.0041ab2b
add esp, 4
mov dword [esi + 8], ebx
lea ecx, [esp + 0x38]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 5], 0
call fcn.00402800
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x38]
push eax
mov dword [esp + 0xfc], ebx
call fcn.004029e0
mov ebp, dword [esp + 0x104]
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00405e70
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x407d42
lea ecx, [esp + 0x38]
mov dword [esp + 0xf8], eax
call fcn.004028c0
xor al, al
jmp 0x407f20
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x407db9
cmp ebp, ebx
je 0x407d94
lea ecx, [esp + 0x1c]
call fcn.00403b60
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 1
call fcn.00404360
mov esi, dword [ebp]
lea ecx, [esp + 0x1c]
call fcn.004070f0
push eax
mov ecx, ebp
call dword [esi + 0x10]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 0
call fcn.00403bd0
push ebx
push edi
call fcn.00413930
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0xf8], 0xffffffff
call fcn.004028c0
xor al, al
jmp 0x407f20
cmp eax, ebx
jne 0x407de2
push ebx
push edi
call fcn.00413930
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0xf8], 0xffffffff
call fcn.004028c0
mov al, 1
jmp 0x407f20
lea ebx, [eax + 4]
push ebx
call fcn.0041afd0
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
mov esi, dword [esp + 0x18]
push eax
push edi
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov bl, 1
jne 0x407ee6
test ebp, ebp
je 0x407ee4
lea ecx, [esp + 0x1c]
call fcn.00403b60
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 2
call fcn.00404360
mov ebx, dword [ebp]
lea ecx, [esp + 0x1c]
call fcn.004070f0
push eax
mov ecx, ebp
call dword [ebx + 0x10]
mov eax, dword [esp + 0x100]
mov edx, dword [ebp]
push eax
push str.filename
mov ecx, ebp
call dword [edx + 0x28]
lea ecx, [esp + 0x94]
call fcn.00402800
lea ecx, [esp + 0x94]
mov byte [esp + 0xf8], 3
push ecx
call fcn.004058f0
mov ebx, dword [ebp]
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00402e90
push eax
push str.current_dir
mov ecx, ebp
call dword [ebx + 0x28]
lea ecx, [esp + 0x94]
mov byte [esp + 0xf8], 2
call fcn.004028c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf8], 0
call fcn.00403bd0
xor bl, bl
cmp dword [esp + 0x10], edi
je 0x407eff
test ebp, ebp
je 0x407efd
mov edx, dword [ebp]
push str.Failed_to_read_the_entire_file
mov ecx, ebp
call dword [edx + 0x10]
xor bl, bl
push 0
push esi
call fcn.00413930
add esp, 8
lea ecx, [esp + 0x38]
mov dword [esp + 0xf8], 0xffffffff
call fcn.004028c0
mov al, bl
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec
ret 8