Function at 0x10143c70
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 0x10143cc1
push 2
push ebx
push 0x80
push dword [esi + 0x4f5c0]
call eax
add esp, 0x10
test eax, eax
jne 0x10143fbd
push edi
push 0x103cf0cc
push dword [esp + 0x38]
call fcn.10201923
mov edi, eax
add esp, 8
mov dword [esp + 0x34], edi
test edi, edi
jne 0x10143cf1
or dword [esi + 0x764], 0x200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push edi
call fcn.1020a6ef
add esp, 4
cmp eax, 0x50
jne 0x10143faa
push edi
call fcn.1020a6ef
add esp, 4
cmp eax, 0x35
jne 0x10143faa
jmp 0x10143d20
mov edi, dword [esp + 0x34]
nop dword [eax + eax]
cmp ebx, 3
jge 0x10143dbc
push edi
call fcn.1020a6ef
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10143db3
cmp edi, 0x23
jne 0x10143d48
mov dword [esp + 0x10], 1
jmp 0x10143d17
cmp edi, 0xa
jne 0x10143d57
mov dword [esp + 0x10], 0
jmp 0x10143d5e
cmp dword [esp + 0x10], 0
jne 0x10143d17
push edi
call fcn.101fc6c3
add esp, 4
test eax, eax
je 0x10143d72
mov ebp, 1
jmp 0x10143d76
test ebp, ebp
je 0x10143d17
push edi
call fcn.101fc6c3
add esp, 4
test eax, eax
je 0x10143d96
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 0x10143d17
push edi
call fcn.101fc71d
mov edi, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x10143faa
xor ebp, ebp
inc ebx
jmp 0x10143d20
cmp ebx, 3
jl 0x10143fa6
movzx ecx, word [esi + 0x16]
cmp dword [esp + 0x24], ecx
jne 0x10143f86
movzx eax, word [esi + 0x14]
cmp dword [esp + 0x28], eax
jne 0x10143f86
cmp dword [esp + 0x2c], 0xffff
jne 0x10143f86
push 2
push ecx
mov ecx, esi
call fcn.1012fe40
mov edi, eax
mov ecx, esi
push str.subtract__
push edi
mov dword [esp + 0x1c], edi
call fcn.1012ff00
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x10], ebx
cmp ax, word [esi + 0x14]
jae 0x10143f31
push dword [esp + 0x34]
movzx eax, word [esi + 0x16]
push eax
push 2
push edi
call fcn.102015fc
xor eax, eax
add esp, 0x10
xor ebp, ebp
cmp ax, word [esi + 0x16]
jae 0x10143f20
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 0x10143eec
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 0x10143eee
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 0x10143e43
mov edi, dword [esp + 0x14]
movzx eax, word [esi + 0x14]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, eax
jl 0x10143e15
push edi
mov ecx, esi
call fcn.1012fed0
push dword [esp + 0x34]
call fcn.102019f7
push 0x4018
lea eax, [esi + 0x20768]
push 0
push eax
call fcn.101f9320
mov eax, dword [esi + 0x4f5bc]
add esp, 0x10
mov dword [esi + 0x24780], 0
test eax, eax
je 0x10143fb3
push 2
push 1
push 0x80
push dword [esi + 0x4f5c0]
call eax
add esp, 0x10
test eax, eax
je 0x10143fb3
jmp 0x10143fd4
push dword [esp + 0x34]
or dword [esi + 0x764], 0x400
call fcn.102019f7
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.102019f7
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
push 0x103ec24c
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 6
push eax
call fcn.101f94fb
push 0x103ec24c
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 6
push eax
call fcn.101f94fb
int3