Function at 0x10106b70
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.10106810
add esp, 8
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x10106ba9
cmp eax, 2
jne 0x10106bc3
mov dword [ebp], 2
jmp 0x1010702a
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 0x1010702a
cmp dword [esi + 4], 0
je 0x101070e0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10106c6a
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.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x10106ee6
xor eax, eax
mov cl, byte [ebp + 4]
test cl, cl
jne 0x101070f9
mov cl, byte [ebp + 0x38]
mov edx, 3
add cl, 0xfd
cmp cl, 3
movzx ecx, cl
cmovb edx, ecx
cmp dl, 2
jb 0x10106c77
movzx ecx, dl
lea ebx, [ebp + 8]
mov edi, eax
cmp ecx, 2
je 0x10106dd0
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 0x10107120
mov ecx, esi
mov edx, ebx
call fcn.10049670
mov edx, dword [esp]
jmp 0x10106c86
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dh, bl
jmp 0x1010700b
mov edi, eax
mov edx, 0xa01
mov dword [esp + 4], 0
mov eax, edi
test al, al
jne 0x10106c99
mov eax, dword [0x104dec50]
test eax, eax
jne 0x10107032
mov ebp, dword [ebp]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x10106cc7
mov edi, edx
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov edx, edi
mov dword [0x104dec60], eax
mov edi, edx
cmp eax, 0x100f30b0
jne 0x10106cdf
mov eax, dword [ebp]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x10106d09
mov eax, dword [0x104dec78]
test eax, eax
jne 0x10106d06
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], 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 0x10106d34
cmp dl, 1
mov al, dh
je 0x10106d2b
mov eax, dword [esp + 4]
mov al, byte [eax + 8]
cmp al, 0xa
je 0x10106d51
jmp 0x1010700b
mov ebp, ecx
mov ecx, dword [esp + 4]
mov edi, edx
call fcn.100f4550
mov ecx, ebp
mov ebp, dword [esp + 8]
mov edx, edi
cmp al, 0xa
jne 0x1010700b
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.10106810
add esp, 8
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x10106e27
cmp eax, 2
je 0x10106d8c
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 0x1010702a
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 0x10106ed3
mov esi, dword [edi]
cmp dword [eax + 8], 9
jae 0x10106ec3
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x10106ecb
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, closesocket
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 0x10106e0f
call sub.WS2_32.dll_WSAGetLastError
xor edx, edx
cmp eax, 0x274a
jne 0x10106f2f
mov ecx, edx
shr ecx, 0x10
cmp edx, dword [esp + 0x1c]
jae 0x10106e58
mov dword [esp + 0x18], 0
jmp 0x10106f74
mov eax, dword [esp + 0x10]
mov edx, edi
mov edi, dword [esp + 4]
cmp al, 3
je 0x10106d92
mov ecx, dword [esp + 0x14]
mov dword [ebp], 1
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
cmp dl, 2
jae 0x10106da2
jmp 0x1010702a
mov eax, edi
test al, al
jne 0x10106e6b
mov eax, dword [0x104dec50]
test eax, eax
jne 0x101070c2
mov edi, dword [ebp]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x10106e9d
mov ebp, ecx
mov ebx, edx
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
mov ecx, ebp
cmovne eax, edx
mov edx, ebx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x10106ef2
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 0x1010700b
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 0x1010702a
call fcn.100fa7c0
xor al, 1
jmp 0x10106c02
mov eax, dword [0x104dec78]
mov ebp, ecx
mov esi, edx
test eax, eax
jne 0x10106f1d
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push edi
call eax
mov ecx, ebp
mov ebp, dword [esp + 8]
xor ebx, ebx
mov edx, esi
jmp 0x1010700b
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov al, byte [ebp + 0x38]
cmp al, 5
ja 0x1010704c
cmp al, 2
je 0x1010704c
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.10049670
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 0x10106f8c
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1010707e
mov ebp, dword [ebp]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x10106fb6
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x10106fcc
mov eax, dword [ebp]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x10106ff6
mov eax, dword [0x104dec78]
test eax, eax
jne 0x10106ff3
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], 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 0x10106d19
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.100fa7c0
mov edx, edi
test al, al
jne 0x10106c99
mov byte [ebp + 4], 1
jmp 0x10106c99
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 0x101070a7
mov ecx, dword [ecx]
cmp dword [eax + 8], 9
mov dword [esp], ecx
jae 0x10107094
call sub.KERNEL32.dll_GetProcessHeap
push dword [esp]
jmp 0x1010709f
call fcn.100fa7c0
test al, al
jne 0x10106f8c
mov byte [ebp + 4], 1
jmp 0x10106f8c
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 0x10106f4b
mov edi, edx
mov ebx, ecx
call fcn.100fa7c0
mov ecx, ebx
mov edx, edi
test al, al
jne 0x10106e6b
mov byte [ebp + 4], 1
jmp 0x10106e6b
mov ecx, str.called__Option::unwrap____on_a__None__valueC:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823url_2.2.0_srclib.rs__filed
mov edx, 0x2b
push 0x10424ed0
call fcn.100082b0
add esp, 4
ud2
mov dword [esp + 0xc], ebp
mov byte [esp + 0x10], al
mov ecx, 0x1044a65b
mov edx, 0x2b
push 0x1041871c
push 0x1041870c
push edi
call fcn.1000a790
add esp, 0xc
ud2
mov ecx, str.explicit_panic
mov edx, 0xe
push 0x1041888c
call fcn.10048e50
add esp, 4
ud2