Function at 0x10001390
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov ebx, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10015640
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x2c], eax
mov esi, 0x10
lea edi, [ebp - 0x60]
mov dword [ebp - 0x30], ebx
push 0
push esi
push edi
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10001a5f
add edi, eax
sub esi, eax
jne 0x100013d0
mov esi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
movzx ebx, byte [ecx + 0xd]
mov byte [ebp - 0x34], bl
mov ebx, esi
mov dword [ebp - 0x20], eax
cmp byte [ebp - 0x34], 0
jne 0x10001439
mov eax, dword [ebp - 0x20]
mov esi, ecx
nop word cs:[eax + eax]
cmp dword [esi + 0x10], ebx
mov edi, dword [esi + 0x14]
sbb edi, edx
lea edi, [esi + 8]
cmovge eax, esi
cmovge edi, esi
mov esi, dword [edi]
cmp byte [esi + 0xd], 0
je 0x10001420
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x40], esi
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x38], esi
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x24], ebx
mov edi, edx
mov dword [ebp - 0x28], edx
je 0x10001485
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov esi, dword [ebp - 0x20]
mov edx, dword [esi + 4]
xor ebx, ebx
cmp byte [edx + 0xd], 0
je 0x100014a0
cmp byte [esi + 0xd], 0
jne 0x100014f6
jmp 0x100014e7
cmp ebx, dword [eax + 0x10]
mov esi, edi
sbb esi, dword [eax + 0x14]
jl 0x10001453
cmp eax, dword [ebp - 0x20]
je 0x10001453
mov esi, dword [ebp - 0x20]
movzx edx, byte [ebp - 0x34]
jmp 0x100016fc
mov ebx, dword [ebp - 0x24]
nop word cs:[eax + eax]
mov edi, edx
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
cmp ecx, ebx
mov edx, eax
sbb edx, dword [ebp - 0x28]
lea edx, [edi + 8]
cmovge esi, edi
cmovge edx, edi
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x100014b0
cmp ecx, ebx
mov ecx, dword [ebp - 0x28]
sbb eax, ecx
setge al
movzx ebx, al
mov edx, edi
mov edi, ecx
cmp byte [esi + 0xd], 0
jne 0x100014f6
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [esi + 0x10]
mov ecx, edi
sbb ecx, dword [esi + 0x14]
jge 0x10001555
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x6666666
mov dword [ebp - 0x10], 0
je 0x10001c66
push 0x28
call fcn.10015b56
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
mov edi, dword [ebp - 0x28]
mov dword [eax + 0x14], edi
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
call fcn.1000eb40
mov esi, eax
mov eax, dword [ebp - 0x50]
lea ecx, [esi + 0x18]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x50]
cmp ecx, eax
je 0x100015bc
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x100015aa
mov eax, dword [esi + 0x24]
sub eax, ecx
cmp eax, 0x1000
jb 0x1000158b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10001c6b
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.10015b8b
add esp, 8
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
movsd xmm0, qword [ebp - 0x4c]
movsd qword [esi + 0x1c], xmm0
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x24], eax
jmp 0x100015ef
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x100015ef
mov eax, dword [ebp - 0x44]
sub eax, ecx
cmp eax, 0x1000
jb 0x100015e5
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10001c6b
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.10015b8b
add esp, 8
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov edx, dword [esi + 4]
xor ecx, ecx
cmp byte [edx + 0xd], 0
mov dword [ebp - 0x20], esi
je 0x1000160c
mov ebx, edx
cmp byte [esi + 0xd], 0
jne 0x10001650
jmp 0x10001643
mov edi, dword [ebp - 0x24]
nop
mov ebx, edx
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
cmp ecx, edi
mov edx, eax
sbb edx, dword [ebp - 0x28]
lea edx, [ebx + 8]
cmovge esi, ebx
cmovge edx, ebx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x10001610
cmp ecx, edi
mov edi, dword [ebp - 0x28]
sbb eax, edi
setge al
movzx ecx, al
cmp byte [esi + 0xd], 0
jne 0x10001650
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi + 0x10]
mov eax, edi
sbb eax, dword [esi + 0x14]
jge 0x100016a1
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x6666666
mov dword [ebp - 0x10], 0xffffffff
je 0x10001c61
mov esi, ecx
push 0x28
call fcn.10015b56
add esp, 4
mov dword [eax + 0x14], edi
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.1000eb40
mov esi, eax
lea eax, [esi + 0x1c]
mov dword [ebp - 0x20], eax
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov ebx, ecx
sub ebx, edx
mov edi, dword [ebp - 0x40]
mov eax, edi
sub eax, ebx
jae 0x100016c4
add edx, edi
mov dword [esi + 0x20], edx
mov ebx, dword [ebp - 0x24]
jmp 0x100016f0
mov ebx, dword [ebp - 0x24]
jbe 0x100016f0
mov ebx, dword [esi + 0x24]
sub ebx, edx
mov edx, dword [ebp - 0x40]
cmp ebx, edx
jae 0x10001a48
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x50]
push eax
push edx
call fcn.10008c70
jmp 0x100016bf
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
mov ecx, dword [esi + 4]
movzx edx, byte [ecx + 0xd]
xor edi, edi
mov dword [ebp - 0x3c], ecx
mov eax, esi
test dl, dl
je 0x1000170f
cmp byte [eax + 0xd], 0
jne 0x10001772
jmp 0x10001761
mov byte [ebp - 0x34], dl
mov dword [ebp - 0x20], esi
mov eax, esi
mov esi, ecx
nop dword [eax]
mov edx, esi
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
cmp ebx, dword [ebp - 0x24]
mov esi, edi
sbb esi, dword [ebp - 0x28]
lea esi, [edx + 8]
cmovge eax, edx
cmovge esi, edx
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x10001720
mov dword [ebp - 0x3c], edx
mov esi, dword [ebp - 0x24]
cmp ebx, esi
sbb edi, dword [ebp - 0x28]
setge dh
movzx edi, dh
mov ebx, esi
mov esi, dword [ebp - 0x20]
movzx edx, byte [ebp - 0x34]
cmp byte [eax + 0xd], 0
jne 0x10001772
cmp ebx, dword [eax + 0x10]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x28]
sbb esi, dword [eax + 0x14]
mov esi, dword [ebp - 0x20]
jge 0x100017cc
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x6666666
mov dword [ebp - 0x10], 0xffffffff
je 0x10001c61
push 0x28
call fcn.10015b56
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ebx
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
mov esi, dword [ebp - 0x2c]
mov ecx, esi
push eax
push edi
push dword [ebp - 0x3c]
call fcn.1000eb40
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ecx + 4]
movzx edx, byte [ecx + 0xd]
mov esi, dword [eax + 0x1c]
xor ebx, ebx
test dl, dl
je 0x100017e2
mov edi, ecx
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xd], 0
jne 0x10001831
jmp 0x10001823
mov eax, dword [ebp - 0x20]
nop word cs:[eax + eax]
mov edi, ecx
mov ebx, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp ebx, dword [ebp - 0x24]
mov ecx, edx
sbb ecx, dword [ebp - 0x28]
lea ecx, [edi + 8]
cmovge eax, edi
cmovge ecx, edi
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x100017f0
cmp ebx, dword [ebp - 0x24]
sbb edx, dword [ebp - 0x28]
setge cl
movzx ebx, cl
cmp byte [eax + 0xd], 0
jne 0x10001831
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x10]
mov ecx, dword [ebp - 0x28]
sbb ecx, dword [eax + 0x14]
jge 0x10001881
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x6666666
mov dword [ebp - 0x10], 0xffffffff
je 0x10001c61
push 0x28
call fcn.10015b56
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0x2c]
push eax
push ebx
push edi
call fcn.1000eb40
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x100018b6
add esi, dword [eax + 0x18]
mov ebx, dword [ebp - 0x30]
nop
push 0
push edi
push esi
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10001a5f
add esi, eax
sub edi, eax
jne 0x10001890
cmp dword [ebp - 0x38], 0xffffffff
je 0x10001a5f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
xor edx, edx
cmp byte [edi + 0xd], 0
mov dword [ebp - 0x20], eax
je 0x100018d6
mov ebx, edi
mov esi, dword [ebp - 0x28]
cmp byte [eax + 0xd], 0
jne 0x10001920
jmp 0x10001913
mov esi, dword [ebp - 0x24]
nop dword [eax]
mov ebx, edi
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp edx, esi
mov edi, ecx
sbb edi, dword [ebp - 0x28]
lea edi, [ebx + 8]
cmovge eax, ebx
cmovge edi, ebx
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x100018e0
cmp edx, esi
mov esi, dword [ebp - 0x28]
sbb ecx, esi
setge cl
movzx edx, cl
cmp byte [eax + 0xd], 0
jne 0x10001920
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x10]
mov ecx, esi
sbb ecx, dword [eax + 0x14]
jge 0x1000196f
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x6666666
mov dword [ebp - 0x10], 0xffffffff
je 0x10001c61
mov edi, edx
push 0x28
call fcn.10015b56
add esp, 4
mov dword [eax + 0x14], esi
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0x2c]
push eax
push edi
push ebx
call fcn.1000eb40
mov ecx, dword [ebp - 0x38]
add dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
xor edx, edx
cmp byte [edi + 0xd], 0
mov dword [ebp - 0x20], eax
je 0x10001995
mov ebx, edi
mov esi, dword [ebp - 0x28]
cmp byte [eax + 0xd], 0
jne 0x100019e0
jmp 0x100019d3
mov esi, dword [ebp - 0x24]
nop dword [eax + eax]
mov ebx, edi
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp edx, esi
mov edi, ecx
sbb edi, dword [ebp - 0x28]
lea edi, [ebx + 8]
cmovge eax, ebx
cmovge edi, ebx
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x100019a0
cmp edx, esi
mov esi, dword [ebp - 0x28]
sbb ecx, esi
setge cl
movzx edx, cl
cmp byte [eax + 0xd], 0
jne 0x100019e0
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x10]
mov ecx, esi
sbb ecx, dword [eax + 0x14]
jge 0x10001a2f
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x6666666
mov dword [ebp - 0x10], 0xffffffff
je 0x10001c61
mov edi, edx
push 0x28
call fcn.10015b56
add esp, 4
mov dword [eax + 0x14], esi
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0x2c]
push eax
push edi
push ebx
call fcn.1000eb40
lea edi, [ebp - 0x60]
mov esi, 0x10
mov ecx, dword [ebp - 0x40]
cmp dword [eax + 0x18], ecx
mov ebx, dword [ebp - 0x30]
jne 0x100013d0
jmp 0x10001a75
lea ebx, [ecx + eax]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x20], ebx
jmp 0x100016bf
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
xor edx, edx
cmp byte [edi + 0xd], 0
mov dword [ebp - 0x20], eax
je 0x10001a95
mov ebx, edi
mov esi, dword [ebp - 0x28]
cmp byte [eax + 0xd], 0
jne 0x10001ae0
jmp 0x10001ad3
mov esi, dword [ebp - 0x24]
nop dword [eax + eax]
mov ebx, edi
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp edx, esi
mov edi, ecx
sbb edi, dword [ebp - 0x28]
lea edi, [ebx + 8]
cmovge eax, ebx
cmovge edi, ebx
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x10001aa0
cmp edx, esi
mov esi, dword [ebp - 0x28]
sbb ecx, esi
setge cl
movzx edx, cl
cmp byte [eax + 0xd], 0
jne 0x10001ae0
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x10]
mov ecx, esi
sbb ecx, dword [eax + 0x14]
jge 0x10001b2f
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 0x6666666
mov dword [ebp - 0x10], 0xffffffff
je 0x10001c61
mov edi, edx
push 0x28
call fcn.10015b56
add esp, 4
mov dword [eax + 0x14], esi
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax + 0x18], xmm0
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0x2c]
push eax
push edi
push ebx
call fcn.1000eb40
lea ecx, [eax + 0x1c]
mov ebx, dword [ebp + 8]
cmp ecx, ebx
je 0x10001ba6
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
sub edi, esi
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
sub ecx, eax
cmp ecx, edi
jae 0x10001b5f
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push edi
call fcn.10008ef0
mov ebx, dword [ebx]
jmp 0x10001b83
mov ebx, dword [ebx + 4]
sub ebx, eax
mov ecx, edi
sub ecx, ebx
jbe 0x10001b92
push ebx
push esi
push eax
mov dword [ebp - 0x20], ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add esi, ebx
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 4]
mov edi, dword [ebp - 0x20]
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add ebx, edi
jmp 0x10001ba0
lea ebx, [eax + edi]
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
lea ecx, [eax + 4]
mov dword [ebp - 0x38], ecx
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
je 0x10001c0c
mov dword [ebp - 0x30], eax
cmp byte [eax + 0xd], 0
mov ecx, dword [ebp - 0x38]
cmove ecx, eax
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
jne 0x10001bf9
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
nop word cs:[eax + eax]
cmp edi, dword [ecx + 0x10]
mov esi, edx
sbb esi, dword [ecx + 0x14]
lea esi, [ecx + 8]
cmovl eax, ecx
cmovl esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
je 0x10001be0
mov ecx, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.1000ed50
mov al, 1
jmp 0x10001a61
mov dword [ebp - 0x30], eax
jmp 0x10001c42
cmp eax, ebx
sbb edx, ecx
mov eax, dword [ebp - 0x20]
mov ecx, eax
cmovl ecx, esi
cmp byte [eax + 0xd], 0
cmovne eax, ecx
mov dword [ebp - 0x30], esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x10001bbd
mov dword [ebp - 0x20], eax
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov eax, dword [ebp - 0x24]
cmp ebx, eax
mov edi, ecx
mov edx, dword [ebp - 0x28]
sbb edi, edx
jge 0x10001c20
add esi, 8
mov eax, dword [ebp - 0x20]
jmp 0x10001c36
call fcn.1000d1a0
call fcn.1000d1a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop word cs:[eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
lea ecx, [ebp - 0x50]
call fcn.10001ca0
lea ecx, [ebp - 0x6c]
call fcn.10001d00
add esp, 0x10
pop ebp
ret