Function at 0x410f44
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x50]
push edi
call fcn.004180a8
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
mov byte [ebp - 5], 0
test dword [esi + 0x120], eax
je 0x410fac
and dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 5], bl
test ecx, ecx
je 0x410f82
call fcn.0041457e
and dword [ebp - 0x44], 0
push dword [esi + 0x120]
and dword [ebp - 0x40], 0
lea ecx, [ebp - 0x50]
push 0x20000
call fcn.00418110
test eax, eax
jne 0x410fac
lea ecx, [ebp - 0x50]
call fcn.004180f3
xor al, al
jmp 0x4110f8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp + 0x14]
mov edi, eax
add dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0x18]
push 0
pop edx
adc edx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], edx
mov eax, 0x20000
xor edx, edx
mov dword [ebp - 0x1c], edi
div edi
push dword [ebp - 0x18]
mov edi, eax
mov dword [ebp - 0xc], ecx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x10]
push ecx
call fcn.004124da
test al, al
je 0x4110ee
mov eax, dword [ebp - 0x1c]
cdq
mov ecx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push ecx
push eax
call sub.ntdll.dll__allmul
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, edi
push dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
push 0
pop eax
adc eax, dword [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 0x24], edx
call fcn.00412554
test al, al
je 0x411038
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp - 0xc]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x20]
imul edi, dword [ebp - 0x1c]
cmp byte [ebp - 5], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
je 0x41105a
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
xor edx, edx
lea ecx, [ebp - 0x34]
push edx
push ecx
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
push edx
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov edx, eax
mov dword [esi + 0x38], edx
cmp edx, 0xc0000017
jne 0x411095
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shr edi, 1
sub eax, edi
mov dword [ebp - 0x14], edi
sbb ecx, 0
jmp 0x4110c8
mov ecx, 0xc0000000
mov eax, edx
and eax, ecx
cmp eax, ecx
je 0x411101
cmp dword [ebp - 0x38], edi
jne 0x411101
cmp byte [ebp - 5], 0
je 0x4110bc
push edi
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call sub.ntdll.dll_memcpy
add esp, 0xc
add dword [ebp + 0x10], edi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
add eax, edi
push dword [ebp + 0xc]
adc ecx, 0
mov dword [ebp - 0xc], eax
push ecx
push eax
mov dword [ebp - 0x10], ecx
call fcn.004124da
mov ecx, dword [ebp - 0x2c]
test al, al
mov eax, dword [ebp - 0x28]
jne 0x411000
lea ecx, [ebp - 0x50]
call fcn.004180f3
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x154]
test ecx, ecx
je 0x411149
mov eax, edx
and eax, 0xc0000000
push edi
cmp eax, 0xc0000000
jne 0x41112d
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push edx
push 0x40145c
push 0x69a4
jmp 0x411140
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0x401468
push 0x69a5
push ecx
call fcn.00416e14
add esp, 0x1c
cmp byte [esi + 0x158], 0
je 0x410f9d
cmp dword [esi + 0x38], 0xc000000e
je 0x411169
mov ecx, dword [esi + 0x38]
call fcn.004124a7
mov bl, al
test bl, bl
je 0x410f9d
push dword [esi + 0x38]
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3