Function at 0x44cd80
Capabilities:
Read file on windows

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp ebx, 0xfffffffe
jne 0x44cdaa
call fcn.004405ca
and dword [eax], 0
call fcn.004405dd
mov dword [eax], 9
jmp 0x44d12c
test ebx, ebx
js 0x44d114
cmp ebx, dword [0x472a10]
jae 0x44d114
push ebx
pop eax
mov dword [ebp - 0x14], 1
and eax, 0x3f
push ebx
pop edi
sar edi, 6
imul edx, eax, 0x30
mov dword [ebp - 0x10], edi
mov eax, dword [edi*4 + 0x472810]
mov dword [ebp - 0x18], edx
mov cl, byte [edx + eax + 0x28]
mov byte [ebp - 1], cl
test cl, 1
je 0x44d114
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x7fffffff
jbe 0x44ce12
call fcn.004405ca
and dword [eax], 0
call fcn.004405dd
mov dword [eax], 0x16
jmp 0x44d127
test ecx, ecx
je 0x44d110
test byte [ebp - 1], 2
jne 0x44d110
cmp dword [ebp + 0xc], 0
je 0x44cdfa
push esi
mov esi, dword [edx + eax + 0x18]
mov al, byte [edx + eax + 0x29]
mov byte [ebp - 1], al
mov dword [ebp - 0x1c], esi
xor esi, esi
movsx eax, al
sub eax, 1
je 0x44ce5e
sub eax, 1
jne 0x44ce50
push ecx
pop eax
not eax
test al, 1
je 0x44ce69
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jmp 0x44cefa
mov edx, dword [ebp - 0x14]
push ecx
pop eax
not eax
test dl, al
jne 0x44ce85
call fcn.004405ca
and dword [eax], esi
call fcn.004405dd
mov dword [eax], 0x16
call fcn.0043bcec
jmp 0x44d047
push 4
pop eax
shr ecx, 1
mov dword [ebp - 0xc], eax
cmp ecx, eax
jb 0x44ce96
push ecx
pop eax
mov dword [ebp - 0xc], ecx
push eax
call fcn.00446137
push 0
push eax
pop esi
call fcn.00446782
push 0
call fcn.00446782
add esp, 0xc
mov dword [ebp - 8], esi
test esi, esi
jne 0x44ced1
call fcn.004405dd
mov dword [eax], 0xc
call fcn.004405ca
mov dword [eax], 8
jmp 0x44d047
push dword [ebp - 0x14]
push 0
push 0
push ebx
call fcn.0044c2ec
mov ecx, dword [edi*4 + 0x472810]
add esp, 0x10
mov edi, dword [ebp - 0x18]
mov dword [edi + ecx + 0x20], eax
push esi
pop eax
mov dword [edi + ecx + 0x24], edx
push edi
pop edx
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0x24], eax
mov ebx, dword [ebx*4 + 0x472810]
mov dword [ebp - 0x20], ebx
test byte [edx + ebx + 0x28], 0x48
mov ebx, dword [ebp + 8]
je 0x44cfe8
mov ebx, dword [ebp - 0x20]
mov bl, byte [edx + ebx + 0x2a]
mov byte [ebp - 2], bl
cmp bl, 0xa
mov ebx, dword [ebp + 8]
je 0x44cfe8
test ecx, ecx
je 0x44cfe8
mov bl, byte [ebp - 2]
mov edi, dword [ebp - 0x14]
mov byte [eax], bl
inc eax
mov ebx, dword [ebp + 8]
dec ecx
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax*4 + 0x472810]
mov byte [edx + eax + 0x2a], 0xa
je 0x44cfe8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x472810]
mov al, byte [edx + eax + 0x2b]
mov byte [ebp - 2], al
cmp al, 0xa
je 0x44cfe8
test ecx, ecx
je 0x44cfe8
mov eax, dword [ebp - 8]
mov bl, byte [ebp - 2]
push 2
pop edi
mov byte [eax], bl
inc eax
mov ebx, dword [ebp + 8]
dec ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax*4 + 0x472810]
mov byte [edx + eax + 0x2b], 0xa
mov al, byte [ebp - 1]
cmp al, byte [ebp - 0x14]
jne 0x44cfe8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x472810]
mov al, byte [edx + eax + 0x2c]
mov byte [ebp - 2], al
cmp al, 0xa
je 0x44cfe8
test ecx, ecx
je 0x44cfe8
mov eax, dword [ebp - 8]
mov bl, byte [ebp - 2]
push 3
pop edi
mov byte [eax], bl
inc eax
mov ebx, dword [ebp + 8]
dec ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax*4 + 0x472810]
mov byte [edx + eax + 0x2c], 0xa
push ebx
call fcn.004554f5
pop ecx
test eax, eax
je 0x44d064
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax*4 + 0x472810]
test byte [ecx + eax + 0x28], 0x80
je 0x44d064
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetConsoleMode]
test eax, eax
je 0x44d064
cmp byte [ebp - 1], 2
jne 0x44d068
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
shr eax, 1
push eax
push dword [ebp - 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadConsoleW]
test eax, eax
jne 0x44d059
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004405a7
pop ecx
or edi, 0xffffffff
push esi
call fcn.00446782
pop ecx
push edi
pop eax
pop esi
jmp 0x44d12f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
lea edi, [edi + eax*2]
jmp 0x44d08d
mov byte [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44d0dc
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 0x20], ecx
ja 0x44d0dc
add edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax*4 + 0x472810]
test byte [edx + eax + 0x28], 0x80
je 0x44d04a
cmp byte [ebp - 1], 2
je 0x44d0be
shr ecx, 1
push ecx
push dword [ebp + 0xc]
push edi
push dword [ebp - 8]
push ebx
call fcn.0044ca9c
add esp, 0x14
push eax
pop edi
jmp 0x44d04a
shr edi, 1
cmp byte [ebp - 0x14], 0
push edi
push dword [ebp - 0x24]
push ebx
je 0x44d0d5
call fcn.0044cbec
add esp, 0xc
jmp 0x44d0ba
call fcn.0044c8dc
jmp 0x44d0d0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop edi
cmp eax, edi
jne 0x44d100
call fcn.004405dd
mov dword [eax], 9
call fcn.004405ca
mov dword [eax], edi
jmp 0x44d047
cmp eax, 0x6d
jne 0x44d040
xor edi, edi
jmp 0x44d04a
xor eax, eax
jmp 0x44d12f
call fcn.004405ca
and dword [eax], 0
call fcn.004405dd
mov dword [eax], 9
call fcn.0043bcec
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret