Function at 0x44bec0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x4d85e0]
push edi
mov dword [esp + 0x18], ecx
call fcn.0041a260
mov eax, dword [0x4d4b04]
mov eax, dword [eax + 0xfc]
or ebp, 0xffffffff
and eax, 0x7fffffff
mov byte [esp + 0x16], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], eax
mov eax, esi
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x44bf10
cmp ecx, 9
jne 0x44bf15
add eax, 2
jmp 0x44bf03
cmp word [eax], 0x2a
jne 0x44c0b3
movzx edi, word [eax + 2]
lea esi, [eax + 2]
test edi, 0xffffff80
jne 0x44bf40
push 2
push edi
call fcn.0049af5c
add esp, 8
test eax, eax
je 0x44bf40
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x44bf56.68
movzx ecx, byte [eax + 0x44c460]
jmp dword [ecx*4 + 0x44c44c]
mov byte [esp + 0x1c], 1
jmp case.0x44bf56.68
lea edi, [esi + 2]
mov eax, edi
call fcn.00403fe0
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push 0
push edi
call fcn.0049942b
mov ebp, eax
movzx eax, word [esi]
add esp, 0xc
mov dword [esp + 0x2c], edx
test ax, ax
je 0x44bfcd
jmp 0x44bfa0
movzx edx, ax
mov ecx, 0x4b3a64
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x44c007
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x44bfb0
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x44bfa0
mov eax, dword [0x4d4b04]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x44c072
mov edx, dword [0x4d8ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4b356c
push edx
call fcn.00482730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
add esi, 0xfffffffe
jmp case.0x44bf56.68
lea eax, [esi + 2]
push eax
call fcn.0049946d
mov dword [esp + 0x28], eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x44c05d
jmp 0x44c030
movzx edx, ax
mov ecx, 0x4b3a64
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x44c007
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x44c040
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x44c030
mov eax, dword [0x4d4b04]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
je 0x44c0eb
mov edi, ebx
push 0x4af9bc
push 0
push 0x4b356c
call fcn.00439aa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov byte [esp + 0x16], 1
cmp word [esi], 0
je 0x44bf01
add esi, 2
cmp word [esi], 0
je 0x44bf01
add esi, 2
jmp 0x44bf01
push 0
push 0x8000000
push 3
push 0
push 3
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44c114
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d4b04]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x44c10b
mov eax, dword [0x4d8ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4b356c
push eax
call fcn.00482730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov edi, dword [esp + 0x34]
jmp 0x44c074
mov ecx, ebx
call fcn.00480580
mov edi, eax
mov ecx, edi
and ecx, edx
cmp ecx, 0xffffffff
jne 0x44c14f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4d4b04]
push ebx
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x34]
call fcn.0043bc60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
cmp edx, eax
jb 0x44c161
ja 0x44c15d
cmp edi, ebp
jbe 0x44c161
mov edi, ebp
mov edx, eax
test edx, edx
jne 0x44c16a
cmp edi, 0xfffffffd
jbe 0x44c189
mov ecx, dword [esp + 0x34]
push 0x4af9bc
push 0
push str.Out_of_memory.
call fcn.00439eb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, edi
or eax, edx
jne 0x44c1c4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4d4b04]
mov dword [ecx + 0x30], 0
mov edx, dword [0x4d8ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push edx
call fcn.00482730
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x1c], 0
je 0x44c219
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x17]
test al, al
jne 0x44c1dc
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
je 0x44c219
push ecx
mov cl, 1
mov eax, edi
mov byte [esp + 0x1b], 1
call fcn.0043b9d0
cmp eax, 1
jne 0x44c206
mov ecx, dword [esp + 0x18]
push 0
push eax
call fcn.00401280
mov esi, eax
test esi, esi
jne 0x44c257
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
lea ecx, [edi + 2]
push ecx
mov byte [esp + 0x1b], 0
call fcn.0049948e
mov esi, eax
add esp, 4
test esi, esi
jne 0x44c257
mov ecx, dword [esp + 0x34]
push 0x4af9bc
push eax
push str.Out_of_memory.
call fcn.00439eb0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0
lea edx, [esp + 0x24]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4d4b04]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x44c3f4
cmp byte [esp + 0x1c], 0
jne 0x44c38d
mov eax, dword [esp + 0x20]
cmp eax, 3
jb 0x44c2c5
cmp byte [esi], 0xef
jne 0x44c2c5
cmp byte [esi + 1], 0xbb
jne 0x44c2c5
cmp byte [esi + 2], 0xbf
jne 0x44c2c5
mov edi, dword [esp + 0x18]
add eax, 0xfffffffd
push eax
lea edx, [esi + 3]
push edx
push edi
mov ebx, 0xfde9
call fcn.004832e0
jmp 0x44c301
cmp eax, 2
jb 0x44c36a
cmp byte [esi], 0xff
jne 0x44c36a
cmp byte [esi + 1], 0xfe
jne 0x44c36a
mov dl, 1
mov ecx, esi
test dl, dl
je 0x44c2ef
lea ecx, [esi + 2]
add eax, 0xfffffffe
mov edi, dword [esp + 0x18]
push 0
push 1
shr eax, 1
push eax
push ecx
push edi
call fcn.00482730
test eax, eax
jne 0x44c307
xor ebp, ebp
test esi, esi
je 0x44c314
push esi
call fcn.0049952d
add esp, 4
push 0
push 1
mov ecx, edi
call fcn.00401280
cmp byte [esp + 0x16], 0
mov esi, eax
je 0x44c418
mov ebx, dword [esp + 0x18]
mov eax, ebx
call fcn.0041a670
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4bc0cc
mov dword [esp + 0x38], eax
push 0x4bb5d0
push esi
lea eax, [esp + 0x40]
call fcn.0047fc20
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov eax, ebx
call fcn.0041a630
jmp 0x44c418
mov ebx, dword [esp + 0x24]
xor dl, dl
cmp ebx, 0x4b0
je 0x44c2e3
mov edi, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.004832e0
jmp 0x44c301
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x17]
test al, al
jne 0x44c39e
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
jne 0x44c3d4
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00482570
lea edi, [eax - 1]
add esp, 4
neg edi
push esi
sbb edi, edi
call fcn.0049952d
add esp, 4
inc edi
jne 0x44c1a3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x20]
mov edi, eax
test al, 1
je 0x44c3e3
mov byte [eax + esi], 0
inc edi
xor eax, eax
mov word [edi + esi], ax
mov eax, ecx
call fcn.0041a600
mov dword [eax], edi
jmp 0x44c418
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [esi], cx
call fcn.0041a600
cmp byte [esp + 0x17], 0
mov dword [eax], 0
jne 0x44c418
push esi
call fcn.0049952d
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
call fcn.0041a720
test eax, eax
je 0x44c20d
mov edi, dword [esp + 0x34]
test ebp, ebp
sete al
movzx ecx, al
push ecx
call fcn.00439b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4