Function at 0x101494c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x20], 0
xor ebp, ebp
mov dword [esp + 0x24], 0
xor ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x4f5bc]
test eax, eax
je 0x10149511
push 2
push ebx
push 0x80
push dword [esi + 0x4f5c0]
call eax
add esp, 0x10
test eax, eax
jne 0x1014980d
push edi
push 0x10392cf4
push dword [esp + 0x38]
call fcn.101e86c6
mov edi, eax
add esp, 8
mov dword [esp + 0x34], edi
test edi, edi
jne 0x10149541
or dword [esi + 0x764], 0x200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push edi
call fcn.101f1b7f
add esp, 4
cmp eax, 0x50
jne 0x101497fa
push edi
call fcn.101f1b7f
add esp, 4
cmp eax, 0x35
jne 0x101497fa
jmp 0x10149570
mov edi, dword [esp + 0x34]
nop dword [eax + eax]
cmp ebx, 3
jge 0x1014960c
push edi
call fcn.101f1b7f
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10149603
cmp edi, 0x23
jne 0x10149598
mov dword [esp + 0x10], 1
jmp 0x10149567
cmp edi, 0xa
jne 0x101495a7
mov dword [esp + 0x10], 0
jmp 0x101495ae
cmp dword [esp + 0x10], 0
jne 0x10149567
push edi
call fcn.101e3298
add esp, 4
test eax, eax
je 0x101495c2
mov ebp, 1
jmp 0x101495c6
test ebp, ebp
je 0x10149567
push edi
call fcn.101e3298
add esp, 4
test eax, eax
je 0x101495e6
mov eax, dword [esp + ebx*4 + 0x24]
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edi + eax*2]
mov dword [esp + ebx*4 + 0x24], eax
jmp 0x10149567
push edi
call fcn.101e32f2
mov edi, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x101497fa
xor ebp, ebp
inc ebx
jmp 0x10149570
cmp ebx, 3
jl 0x101497f6
movzx ecx, word [esi + 0x16]
cmp dword [esp + 0x24], ecx
jne 0x101497d6
movzx eax, word [esi + 0x14]
cmp dword [esp + 0x28], eax
jne 0x101497d6
cmp dword [esp + 0x2c], 0xffff
jne 0x101497d6
push 2
push ecx
mov ecx, esi
call fcn.10135670
mov edi, eax
mov ecx, esi
push str.subtract__
push edi
mov dword [esp + 0x1c], edi
call fcn.10135730
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x10], ebx
cmp ax, word [esi + 0x14]
jae 0x10149781
push dword [esp + 0x34]
movzx eax, word [esi + 0x16]
push eax
push 2
push edi
call fcn.101e839f
xor eax, eax
add esp, 0x10
xor ebp, ebp
cmp ax, word [esi + 0x16]
jae 0x10149770
mov eax, ebx
and eax, 7
lea ecx, [eax + eax]
mov dword [esp + 0x20], ecx
mov edi, dword [esi + 0x188]
mov eax, ebp
and eax, 1
or eax, ecx
add eax, eax
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
shr edi, cl
and edi, 3
movzx eax, word [eax + ebp*2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [esi + 0x492bc]
movzx edx, ax
movzx eax, word [esi + 0x1e]
sar ebx, cl
imul ebx, eax
mov eax, ebp
sar eax, cl
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
add ebx, eax
shl ebx, 2
lea eax, [ebx + edi]
movzx eax, word [ecx + eax*2]
sub eax, edx
test eax, eax
jle 0x1014973c
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 0x188]
mov ecx, dword [esp + 0x18]
shr edi, cl
movzx eax, word [eax + ebp*2]
and edi, 3
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, word [esi + 0x492bc]
mov ebx, dword [esp + 0x10]
movzx edx, ax
movzx eax, word [esi + 0x1e]
sar ebx, cl
imul ebx, eax
mov eax, ebp
sar eax, cl
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
add ebx, eax
shl ebx, 2
lea eax, [ebx + edi]
movzx edi, word [ecx + eax*2]
sub edi, edx
jmp 0x1014973e
xor edi, edi
mov eax, dword [esi + 0x188]
inc ebp
mov ecx, dword [esp + 0x18]
shr eax, cl
mov ecx, dword [esp + 0x1c]
and eax, 3
add eax, ebx
mov ebx, dword [esp + 0x10]
mov word [ecx + eax*2], di
movzx eax, word [esi + 0x16]
mov ecx, dword [esp + 0x20]
cmp ebp, eax
jl 0x10149693
mov edi, dword [esp + 0x14]
movzx eax, word [esi + 0x14]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, eax
jl 0x10149665
push edi
mov ecx, esi
call fcn.10135700
push dword [esp + 0x34]
call fcn.101e879a
push 0x4018
lea eax, [esi + 0x20768]
push 0
push eax
call fcn.101dfee0
mov eax, dword [esi + 0x4f5bc]
add esp, 0x10
mov dword [esi + 0x24780], 0
test eax, eax
je 0x10149803
push 2
push 1
push 0x80
push dword [esi + 0x4f5c0]
call eax
add esp, 0x10
test eax, eax
je 0x10149803
jmp 0x10149824
push dword [esp + 0x34]
or dword [esi + 0x764], 0x400
call fcn.101e879a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov edi, dword [esp + 0x34]
push edi
call fcn.101e879a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x103aec5c
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 6
push eax
call fcn.101e00bb
push 0x103aec5c
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 6
push eax
call fcn.101e00bb
int3