Function at 0x44f5c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov byte [ebp - 9], al
mov byte [ebp - 0xa], dl
cmp byte [ebp - 9], 0
je 0x44f64d
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x5f8340
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x44f637
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0053cb10
mov dword [ebp - 0x28], 1
jmp 0x44f84d
mov eax, dword [ebp + 8]
mov dword [eax + 8], 3
mov dword [ebp - 0x28], 0
jmp 0x44f84d
mov ebx, dword [ebp + 8]
mov dword [esp + 4], 0x5f8343
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebx + 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x44f83c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp dword [ebp - 0x10], 0
je 0x44f6cc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 1
mov dword [ebp - 0x28], 0
jmp 0x44f84d
cmp byte [ebp - 0xa], 0
je 0x44f761
mov eax, dword [ebp + 8]
mov byte [eax + 0x18], 1
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], 0x2000
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x14]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.005e7ed0
mov dword [esp + 4], eax
mov dword [ebp - 0x20], 0x8000
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.005e7f70
mov eax, dword [eax]
and eax, 0xffffe000
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0053c84c
test al, al
je 0x44f829
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x44f7a1
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0053ce50
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00529158
mov esi, dword [ebp + 8]
mov dword [esp], 0x14
call fcn.0052a9a8
mov ebx, eax
mov dword [esp], ebx
call fcn.0053ce18
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [eax], 4
mov dword [esp + 4], 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0053c84c
test al, al
je 0x44f820
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0053c700
test al, al
je 0x44f820
cmp dword [ebp - 0x14], 0xfe
jne 0x44f820
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044f858
mov byte [ebp - 0x21], al
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x28], eax
jmp 0x44f84d
mov dword [ebp - 0x28], 0
jmp 0x44f84d
mov eax, dword [ebp + 8]
mov dword [eax + 8], 8
mov dword [ebp - 0x28], 0
jmp 0x44f84d
mov eax, dword [ebp + 8]
mov dword [eax + 8], 2
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
add esp, 0x40
pop ebx
pop esi
pop ebp
ret