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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, edx
mov ebp, ecx
lea edi, [esp + 0xc]
mov ecx, edi
push 1
push dword [esp + 0x3c]
call fcn.10106af0
add esp, 8
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x10106e89
cmp eax, 2
jne 0x10106ea3
mov dword [ebp], 2
jmp 0x1010730a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ebp], 1
mov dword [ebp + 8], ecx
mov dword [ebp + 4], eax
jmp 0x1010730a
cmp dword [esi + 4], 0
je 0x101073c0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10106f4a
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], ebp
mov dword [esp + 0x20], ecx
mov ebp, dword [esi]
mov ecx, dword [ebp]
call fcn.100f4af0
mov eax, dword [0x10551f14]
test eax, eax
jne 0x101071c6
xor eax, eax
mov cl, byte [ebp + 4]
test cl, cl
jne 0x101073d9
mov cl, byte [ebp + 0x38]
mov edx, 3
add cl, 0xfd
cmp cl, 3
movzx ecx, cl
cmovb edx, ecx
cmp dl, 2
jb 0x10106f57
movzx ecx, dl
lea ebx, [ebp + 8]
mov edi, eax
cmp ecx, 2
je 0x101070b0
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x38], 3
mov dword [ebp + 0x3c], 0
mov dword [esp], eax
add al, 0xfd
mov dword [esp + 4], ecx
cmp al, 2
jbe 0x10107400
mov ecx, esi
mov edx, ebx
call fcn.10049920
mov edx, dword [esp]
jmp 0x10106f66
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dh, bl
jmp 0x101072eb
mov edi, eax
mov edx, 0xa01
mov dword [esp + 4], 0
mov eax, edi
test al, al
jne 0x10106f79
mov eax, dword [0x10551f14]
test eax, eax
jne 0x10107312
mov ebp, dword [ebp]
mov eax, dword [0x10551f24]
test eax, eax
jne 0x10106fa7
mov edi, edx
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
cmovne eax, edx
mov edx, edi
mov dword [0x10551f24], eax
mov edi, edx
cmp eax, 0x100f3390
jne 0x10106fbf
mov eax, dword [ebp]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x10106fe9
mov eax, dword [0x10551f3c]
test eax, eax
jne 0x10106fe6
mov ecx, str.ReleaseSRWLockExclusive
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f51d0
cmovne eax, edx
mov dword [0x10551f3c], eax
push ebp
call eax
mov ebp, dword [esp + 8]
mov ecx, edi
mov edx, edi
mov ebx, 1
shr ecx, 0x10
test dl, dl
je 0x10107014
cmp dl, 1
mov al, dh
je 0x1010700b
mov eax, dword [esp + 4]
mov al, byte [eax + 8]
cmp al, 0xa
je 0x10107031
jmp 0x101072eb
mov ebp, ecx
mov ecx, dword [esp + 4]
mov edi, edx
call fcn.100f4830
mov ecx, ebp
mov ebp, dword [esp + 8]
mov edx, edi
cmp al, 0xa
jne 0x101072eb
lock and dword [esi + 0x20], 0xfffffffe
mov edi, edx
lea ecx, [esp + 0xc]
mov edx, esi
push 1
mov esi, dword [esp + 0x3c]
push esi
call fcn.10106af0
add esp, 8
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x10107107
cmp eax, 2
je 0x1010706c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push dword [eax]
call dword [ecx + 8]
add esp, 4
mov edx, edi
mov edi, dword [esp + 4]
mov dword [ebp], 2
cmp dl, 2
jb 0x1010730a
mov eax, dword [edi + 4]
push dword [edi]
call dword [eax]
add esp, 4
mov eax, dword [edi + 4]
cmp dword [eax + 4], 0
je 0x101071b3
mov esi, dword [edi]
cmp dword [eax + 8], 9
jae 0x101071a3
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x101071ab
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, bind
cmp ecx, 0x7fffffff
cmovb edx, ecx
push 0
push edx
push dword [esp + 0x28]
push dword [eax + 0x88]
call sub.WS2_32.dll_recv
mov edx, eax
cmp eax, 0xffffffff
jne 0x101070ef
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
cmp eax, 0x274a
jne 0x1010720f
mov ecx, edx
shr ecx, 0x10
cmp edx, dword [esp + 0x1c]
jae 0x10107138
mov dword [esp + 0x18], 0
jmp 0x10107254
mov eax, dword [esp + 0x10]
mov edx, edi
mov edi, dword [esp + 4]
cmp al, 3
je 0x10107072
mov ecx, dword [esp + 0x14]
mov dword [ebp], 1
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
cmp dl, 2
jae 0x10107082
jmp 0x1010730a
mov eax, edi
test al, al
jne 0x1010714b
mov eax, dword [0x10551f14]
test eax, eax
jne 0x101073a2
mov edi, dword [ebp]
mov eax, dword [0x10551f24]
test eax, eax
jne 0x1010717d
mov ebp, ecx
mov ebx, edx
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
mov ecx, ebp
cmovne eax, edx
mov edx, ebx
mov dword [0x10551f24], eax
cmp eax, 0x100f3390
jne 0x101071d2
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
mov edi, edx
mov ebx, ecx
call sub.KERNEL32.dll_LeaveCriticalSection
mov ecx, ebx
mov edx, edi
mov ebp, dword [esp + 8]
xor ebx, ebx
jmp 0x101072eb
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x1010730a
call fcn.100faaa0
xor al, 1
jmp 0x10106ee2
mov eax, dword [0x10551f3c]
mov ebp, ecx
mov esi, edx
test eax, eax
jne 0x101071fd
mov ecx, str.ReleaseSRWLockExclusive
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f51d0
cmovne eax, edx
mov dword [0x10551f3c], eax
push edi
call eax
mov ecx, ebp
mov ebp, dword [esp + 8]
xor ebx, ebx
mov edx, esi
jmp 0x101072eb
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov al, byte [ebp + 0x38]
cmp al, 5
ja 0x1010732c
cmp al, 2
je 0x1010732c
mov byte [ebp + 0x38], 3
mov edx, ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xf]
mov dword [ebp + 0x39], eax
mov dword [ebp + 0x3c], ecx
mov ecx, esi
call fcn.10049920
xor ecx, ecx
mov dword [esp + 0x18], 1
mov dh, cl
mov dl, cl
mov eax, edi
mov edi, ecx
mov dword [esp], edx
test al, al
jne 0x1010726c
mov eax, dword [0x10551f14]
test eax, eax
jne 0x1010735e
mov ebp, dword [ebp]
mov eax, dword [0x10551f24]
test eax, eax
jne 0x10107296
mov ecx, 0x103a03b9
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f3390
cmovne eax, edx
mov dword [0x10551f24], eax
cmp eax, 0x100f3390
jne 0x101072ac
mov eax, dword [ebp]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x101072d6
mov eax, dword [0x10551f3c]
test eax, eax
jne 0x101072d3
mov ecx, str.ReleaseSRWLockExclusive
mov edx, 0x17
call fcn.100f2fc0
test eax, eax
mov eax, 0x100f51d0
cmovne eax, edx
mov dword [0x10551f3c], eax
push ebp
call eax
mov ebx, dword [esp + 0x18]
mov edx, dword [esp]
mov ebp, dword [esp + 8]
mov ecx, edi
test ebx, ebx
jne 0x10106ff9
shl ecx, 0x10
movzx eax, dl
mov dword [ebp], ebx
mov edi, ecx
movzx ecx, dh
shl ecx, 8
or ecx, edi
or ecx, eax
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 4]
mov dword [ebp + 8], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, edx
call fcn.100faaa0
mov edx, edi
test al, al
jne 0x10106f79
mov byte [ebp + 4], 1
jmp 0x10106f79
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ecx + 4]
mov dword [esp], ecx
push dword [ecx]
call dword [eax]
mov ecx, dword [esp + 4]
add esp, 4
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 0
je 0x10107387
mov ecx, dword [ecx]
cmp dword [eax + 8], 9
mov dword [esp], ecx
jae 0x10107374
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp]
jmp 0x1010737f
call fcn.100faaa0
test al, al
jne 0x1010726c
mov byte [ebp + 4], 1
jmp 0x1010726c
call sub.KERNEL32.dll_GetProcessHeap
mov ecx, dword [esp]
push dword [ecx - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 0x3c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x1010722b
mov edi, edx
mov ebx, ecx
call fcn.100faaa0
mov ecx, ebx
mov edx, edi
test al, al
jne 0x1010714b
mov byte [ebp + 4], 1
jmp 0x1010714b
mov ecx, str.called__Option::unwrap____on_a__None__valueC:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823url_2.2.0_srclib.rs__file
mov edx, 0x2b
push 0x103a3c60
call fcn.10008540
add esp, 4
ud2
mov dword [esp + 0xc], ebp
mov byte [esp + 0x10], al
mov ecx, 0x103c93eb
mov edx, 0x2b
push 0x103974ac
push 0x1039749c
push edi
call fcn.1000aa20
add esp, 0xc
ud2
mov ecx, str.explicit_panic
mov edx, 0xe
push 0x1039761c
call fcn.10049100
add esp, 4
ud2