Function at 0x44a69d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov al, byte [ebp + 0x14]
and byte [ebp + 0x14], 1
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
xor ebx, ebx
push ebx
push ebx
push dword [esi]
and al, 2
mov byte [ebp - 1], al
call fcn.0043edf6
add esp, 0x10
mov dword [ebp - 0x10], eax
xor edi, edi
cmp dword [ebp + 0x10], 0x4b0
lea eax, [ebp - 0xc]
push ebx
mov dword [ebp - 8], ebx
push eax
jne 0x44a78b
push 2
jmp 0x44a75b
push 2
pop ecx
cmp dword [ebp - 0xc], ecx
jb 0x44a8f8
movzx eax, byte [ebp + 0x13]
movzx edx, byte [ebp + 0x12]
shl eax, 8
or eax, edx
cmp eax, 0xa
je 0x44a777
cmp eax, 0xd
je 0x44a70a
add edi, ecx
jmp 0x44a755
push ebx
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp + 0x12]
push eax
push dword [esi]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44a8f8
cmp dword [ebp - 0xc], 2
jb 0x44a8f8
movzx eax, byte [ebp + 0x13]
movzx ecx, byte [ebp + 0x12]
shl eax, 8
or eax, ecx
cmp eax, 0xa
je 0x44a77f
cmp byte [ebp - 1], bl
jne 0x44a8f8
push 2
add edi, 4
mov dword [ebp - 8], ebx
pop ecx
push ebx
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp + 0x12]
push eax
push dword [esi]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44a6e3
jmp 0x44a8f8
mov dword [ebp - 8], ecx
jmp 0x44a8f8
mov dword [ebp - 8], 4
jmp 0x44a8f8
cmp dword [ebp + 0x10], 0x4b1
mov dword [ebp - 0xc], ebx
jne 0x44a87e
push 2
jmp 0x44a80d
push 2
pop eax
cmp dword [ebp - 0xc], eax
jb 0x44a82b
movzx edx, byte [ebp + 0x13]
xor ecx, ecx
mov ch, byte [ebp + 0x12]
or ecx, edx
cmp ecx, 0xa
je 0x44a81f
cmp ecx, 0xd
je 0x44a7c4
add edi, eax
jmp 0x44a804
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0x12]
push eax
push dword [esi]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44a82b
cmp dword [ebp - 0xc], 2
jb 0x44a82b
movzx ecx, byte [ebp + 0x13]
xor eax, eax
mov ah, byte [ebp + 0x12]
or eax, ecx
cmp eax, 0xa
je 0x44a824
cmp byte [ebp - 1], bl
jne 0x44a82b
push 2
add edi, 4
mov dword [ebp - 8], ebx
pop eax
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp + 0x12]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44a79f
jmp 0x44a82b
mov dword [ebp - 8], eax
jmp 0x44a82b
mov dword [ebp - 8], 4
mov eax, dword [ebp - 0x10]
add eax, edi
cmp byte [ebp + 0x14], bl
mov dword [ebp + 0x10], eax
je 0x44a93d
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
call fcn.00443e29
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x10]
cdq
push ebx
push edx
push eax
push dword [esi]
call fcn.0043edf6
add esp, 0x10
push edi
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00402ccf
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
call fcn.00441fa1
pop ecx
pop ecx
jmp 0x44a935
push 1
jmp 0x44a8d7
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jb 0x44a8f8
cmp byte [ebp + 0x13], 0xa
je 0x44a8ec
cmp byte [ebp + 0x13], 0xd
je 0x44a899
inc edi
jmp 0x44a8ce
push ebx
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0x13]
push eax
push dword [esi]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44a8f8
cmp dword [ebp - 0xc], 1
jb 0x44a8f8
cmp byte [ebp + 0x13], 0xa
je 0x44a8f1
cmp byte [ebp - 1], bl
jne 0x44a8f8
inc edi
xor eax, eax
inc edi
mov dword [ebp - 8], ebx
inc eax
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp + 0x13]
push eax
push dword [esi]
mov byte [ebp + 0x13], bl
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44a882
jmp 0x44a8f8
mov dword [ebp - 8], eax
jmp 0x44a8f8
mov dword [ebp - 8], 2
mov eax, dword [ebp - 0x10]
add eax, edi
cmp byte [ebp + 0x14], bl
mov dword [ebp + 0x10], eax
je 0x44a93d
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
call fcn.00443e29
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x10]
cdq
push ebx
push edx
push eax
push dword [esi]
call fcn.0043edf6
add esp, 0x10
push edi
push dword [ebp + 0x14]
mov ecx, esi
call fcn.00402ccf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edi + eax], ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
add eax, ecx
cdq
push ebx
push edx
push eax
push dword [esi]
call fcn.0043edf6
mov eax, dword [ebp - 8]
add edi, eax
add esp, 0x10
xor eax, eax
test edi, edi
pop edi
pop esi
setg al
pop ebx
leave
ret