Function at 0x44c130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x4da648]
push edi
mov dword [esp + 0x18], ecx
call fcn.0041a450
mov eax, dword [0x4d6b14]
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], 0xffffffff
mov dword [esp + 0x24], eax
mov eax, esi
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x44c180
cmp ecx, 9
jne 0x44c185
add eax, 2
jmp 0x44c173
cmp word [eax], 0x2a
jne 0x44c32a
movzx edi, word [eax + 2]
lea esi, [eax + 2]
test edi, 0xffffff80
jne 0x44c1b0
push 2
push edi
call fcn.0049b9cc
add esp, 8
test eax, eax
je 0x44c1b0
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffbd
cmp eax, 0x11
ja case.0x44c1c6.68
movzx ecx, byte [eax + 0x44c6d0]
jmp dword [ecx*4 + 0x44c6bc]
mov byte [esp + 0x1c], 1
jmp case.0x44c1c6.68
lea edi, [esi + 2]
mov eax, edi
call fcn.00404030
movzx edx, al
neg edx
sbb edx, edx
and edx, 6
add edx, 0xa
push edx
push 0
push edi
call fcn.0049a14b
mov ebp, eax
movzx eax, word [esi]
add esp, 0xc
mov dword [esp + 0x2c], edx
test ax, ax
je 0x44c23d
jmp 0x44c210
movzx edx, ax
mov ecx, 0x4b4adc
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x44c277
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x44c220
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x44c210
mov eax, dword [0x4d6b14]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x44c69b
mov edx, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b45e4
push edx
call fcn.004833e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
add esi, 0xfffffffe
jmp case.0x44c1c6.68
lea eax, [esi + 2]
push eax
call fcn.0049a18d
mov dword [esp + 0x28], eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x44c2cd
jmp 0x44c2a0
movzx edx, ax
mov ecx, 0x4b4adc
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x44c277
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x44c2b0
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x44c2a0
mov eax, dword [0x4d6b14]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x44c69b
mov eax, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b45e4
push eax
call fcn.004833e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov byte [esp + 0x16], 1
cmp word [esi], 0
je 0x44c171
add esi, 2
cmp word [esi], 0
je 0x44c171
add esi, 2
jmp 0x44c171
push 0
push 0x8000000
push 3
push 0
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44c365
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4d6b14]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jmp 0x44c2e0
mov ecx, ebx
call fcn.00481170
mov edi, eax
mov ecx, edi
and ecx, edx
cmp ecx, 0xffffffff
jne 0x44c3a0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [0x4d6b14]
push ebx
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [esp + 0x34]
call fcn.0043bfa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x2c]
cmp edx, eax
jb 0x44c3b2
ja 0x44c3ae
cmp edi, ebp
jbe 0x44c3b2
mov edi, ebp
mov edx, eax
test edx, edx
jne 0x44c3bb
cmp edi, 0xfffffffd
jbe 0x44c3da
mov ecx, dword [esp + 0x34]
push 0x4b09ac
push 0
push str.Out_of_memory.
call fcn.0043a200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, edi
or eax, edx
jne 0x44c415
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [0x4d6b14]
mov dword [ecx + 0x30], 0
mov edx, dword [0x4daf14]
push 1
push 0
push 0xffffffffffffffff
push 0x4b09bc
push edx
call fcn.004833e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
cmp byte [esp + 0x1c], 0
je 0x44c46a
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x17]
test al, al
jne 0x44c42d
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
je 0x44c46a
push ecx
mov cl, 1
mov eax, edi
mov byte [esp + 0x1b], 1
call fcn.0043bd10
cmp eax, 1
jne 0x44c457
mov ecx, dword [esp + 0x18]
push 0
push eax
call fcn.00401280
mov esi, eax
test esi, esi
jne 0x44c4a8
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.0049a1ae
mov esi, eax
add esp, 4
test esi, esi
jne 0x44c4a8
mov ecx, dword [esp + 0x34]
push 0x4b09ac
push eax
push str.Out_of_memory.
call fcn.0043a200
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 [0x4d6b14]
push ebx
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebp, ebp
je 0x44c645
cmp byte [esp + 0x1c], 0
jne 0x44c5de
mov eax, dword [esp + 0x20]
cmp eax, 3
jb 0x44c516
cmp byte [esi], 0xef
jne 0x44c516
cmp byte [esi + 1], 0xbb
jne 0x44c516
cmp byte [esi + 2], 0xbf
jne 0x44c516
mov edi, dword [esp + 0x18]
add eax, 0xfffffffd
push eax
lea edx, [esi + 3]
push edx
push edi
mov ebx, 0xfde9
call fcn.00483f90
jmp 0x44c552
cmp eax, 2
jb 0x44c5bb
cmp byte [esi], 0xff
jne 0x44c5bb
cmp byte [esi + 1], 0xfe
jne 0x44c5bb
mov dl, 1
mov ecx, esi
test dl, dl
je 0x44c540
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.004833e0
test eax, eax
jne 0x44c558
xor ebp, ebp
test esi, esi
je 0x44c565
push esi
call fcn.0049a24d
add esp, 4
push 0
push 1
mov ecx, edi
call fcn.00401280
cmp byte [esp + 0x16], 0
mov esi, eax
je 0x44c669
mov ebx, dword [esp + 0x18]
mov eax, ebx
call fcn.0041a890
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x4bd1e4
mov dword [esp + 0x38], eax
push 0x4bc6e8
push esi
lea eax, [esp + 0x40]
call fcn.00480810
mov edi, dword [esp + 0x40]
add esp, 0x1c
mov eax, ebx
call fcn.0041a850
jmp 0x44c669
mov ebx, dword [esp + 0x24]
xor dl, dl
cmp ebx, 0x4b0
je 0x44c534
mov edi, dword [esp + 0x18]
push eax
push esi
push edi
call fcn.00483f90
jmp 0x44c552
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x17]
test al, al
jne 0x44c5ef
mov eax, dword [ecx + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
jne 0x44c625
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00483220
lea edi, [eax - 1]
add esp, 4
neg edi
push esi
sbb edi, edi
call fcn.0049a24d
add esp, 4
inc edi
jne 0x44c3f4
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 0x44c634
mov byte [eax + esi], 0
inc edi
xor eax, eax
mov word [edi + esi], ax
mov eax, ecx
call fcn.0041a820
mov dword [eax], edi
jmp 0x44c669
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov word [esi], cx
call fcn.0041a820
cmp byte [esp + 0x17], 0
mov dword [eax], 0
jne 0x44c669
push esi
call fcn.0049a24d
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
call fcn.0041a940
test eax, eax
je 0x44c45e
mov ebx, dword [esp + 0x34]
test ebp, ebp
sete al
movzx ecx, al
push ecx
call fcn.00439e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ebx, dword [esp + 0x34]
push 0x4b09ac
push 0
push 0x4b45e4
call fcn.00439d90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4