Function at 0x14004af90
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x12d0]
mov eax, 0x13d0
call fcn.14006ee60
sub rsp, rax
mov rax, qword [0x140116008]
xor rax, rsp
mov qword [rbp + 0x12c0], rax
xor r15d, r15d
lea rax, [0x140116ee0]
cmp qword [0x140116cd8], rax
mov ebx, ecx
mov r14d, r15d
mov qword [rsp + 0x60], r15
jne 0x14004afeb
lea rcx, str.Remote_shutdown_through_osControl_is_enabled_n
call fcn.140041200
mov edx, 1
mov edi, 2
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x4c], 1
mov rcx, rax
mov qword [rsp + 0x58], rax
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rdi + 2]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx ecx, bx
mov word [rsp + 0x78], di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x7a], ax
lea r8d, [rdi + 0xe]
mov eax, dword [0x14095e450]
mov rcx, rsi
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x7c], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14004b077
lea rcx, str.Cannot_bind_socket_to_HTTP_port_n
call fcn.140041200
lea eax, [rdi - 3]
jmp 0x14004bd62
mov edx, 5
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x14004b09f
lea rcx, str.Cannot_listen_on_HTTP_socket_n
call fcn.140041200
mov eax, 0xffffffff
jmp 0x14004bd62
mov qword [rsp + 0x1408], r12
lea rcx, str.HTTP_server_is_listening_port__d_n
mov edx, ebx
mov qword [rsp + 0x1410], r13
call fcn.140040c90
cmp dword [0x14015e164], r14d
jne 0x14004bd50
lea r13, [0x14015e190]
lea r12, [0x140000000]
mov ebx, 0x32
call fcn.140029770
mov rdi, rax
sub edi, r14d
cmp edi, 0x3e8
jb 0x14004b1ca
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call fcn.1400097b0
test eax, eax
jns 0x14004b163
lea rcx, [rbp + 0x1c0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14004b114
movzx ebx, ax
lea rdx, [rbp + 0x1c0]
mov r8d, ebx
lea rcx, [rbp + 0x2c0]
call fcn.140050fe0
cmp rbx, 0x800
jae 0x14004bd88
lea rdx, [rbp + 0x2c0]
mov byte [rbp + rbx + 0x2c0], 0
lea rcx, [0x14010b5f0]
call fcn.140040c90
mov ebx, 0x32
movzx eax, byte [0x14095e5c1]
test al, al
je 0x14004b17c
add al, 0xff
mov byte [0x14095e5c1], al
je 0x14004bd8e
movzx eax, word [0x14095e59e]
test ax, ax
je 0x14004b1aa
mov ecx, 0xffff
add ax, cx
mov word [0x14095e59e], ax
jne 0x14004b1aa
lea rcx, str.Initiating_OS_shutdown_n
call fcn.140041200
call fcn.14004a730
cmp edi, 0x1388
jbe 0x14004b1be
call fcn.140029770
mov qword [rsp + 0x60], rax
jmp 0x14004b1ca
add r14, 0x3e8
mov qword [rsp + 0x60], r14
cmp word [0x1401186e0], 0
je 0x14004b205
call fcn.140009a00
sub ax, word [0x1401186e0]
mov edx, 5
movzx eax, ax
sub edx, eax
cmp edx, 3
jg 0x14004b1f8
mov edx, 3
mov eax, edx
jmp 0x14004b1fe
mov eax, edx
test edx, edx
je 0x14004b205
cmp eax, 0x32
jbe 0x14004b214
jmp 0x14004b20a
mov edx, 0x1f4
call fcn.14003c4a0
test eax, eax
cmovne edx, ebx
cmp dword [0x1409639e0], 5
cmove edx, r15d
mov dword [0x14095e3dc], edx
call fcn.1400483c0
cmp byte [0x14095e7d4], 0
jne 0x14004b238
call fcn.140043e80
mov rcx, qword [0x140118680]
test rcx, rcx
je 0x14004b268
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14004b268
call fcn.14000e430
mov rcx, qword [0x140118680]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [0x14095e5bf]
test al, 1
je 0x14004b292
xor ecx, ecx
call fcn.140044370
test ax, ax
je 0x14004b35c
movzx eax, byte [0x14095e5bf]
xor al, 1
mov byte [0x14095e5bf], al
test al, 2
je 0x14004b2b8
mov ecx, 1
call fcn.140044370
test ax, ax
je 0x14004b35c
movzx eax, byte [0x14095e5bf]
xor al, 2
mov byte [0x14095e5bf], al
test al, 8
je 0x14004b2de
mov ecx, 3
call fcn.140044370
test ax, ax
je 0x14004b35c
movzx eax, byte [0x14095e5bf]
xor al, 8
mov byte [0x14095e5bf], al
test al, 4
je 0x14004b300
mov ecx, 9
call fcn.140044370
test ax, ax
je 0x14004b35c
movzx eax, byte [0x14095e5bf]
xor al, 4
mov byte [0x14095e5bf], al
test al, 0x20
je 0x14004b320
call fcn.1400445b0
test al, 1
jne 0x14004b35c
test al, 2
movzx eax, byte [0x14095e5bf]
jne 0x14004b320
xor al, 0x20
mov byte [0x14095e5bf], al
test al, 0x10
je 0x14004b342
mov ecx, 7
call fcn.140044370
test ax, ax
je 0x14004b35c
movzx eax, byte [0x14095e5bf]
xor al, 0x10
mov byte [0x14095e5bf], al
test al, al
jns 0x14004b35c
mov ecx, 0xa
call fcn.140044370
test ax, ax
je 0x14004b35c
xor byte [0x14095e5bf], 0x80
call fcn.140029ba0
mov rcx, qword [0x14015e168]
mov r14, rsi
mov qword [rbp - 0x48], rsi
mov dword [rbp - 0x50], 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdi, [0x1401596f0]
cmp dword [rdi - 0x30], 1
jne 0x14004b3ec
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi]
movzx ebx, word [rdi - 0x1e]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bx, bx
jne 0x14004b3ec
mov rdx, qword [rdi - 0x28]
cmp rdx, 0xffffffffffffffff
je 0x14004b3ec
mov r8d, dword [rbp - 0x50]
mov eax, r15d
test r8d, r8d
je 0x14004b3d0
nop word [rax + rax]
mov ecx, eax
cmp qword [rbp + rcx*8 - 0x48], rdx
je 0x14004b3d0
inc eax
cmp eax, r8d
jb 0x14004b3c0
cmp eax, r8d
jne 0x14004b3e5
cmp r8d, 0x40
jae 0x14004b3e5
mov ecx, eax
mov qword [rbp + rcx*8 - 0x48], rdx
inc dword [rbp - 0x50]
cmp r14, rdx
cmovb r14, rdx
add rdi, 0xc70
cmp rdi, r13
jl 0x14004b383
mov rcx, qword [0x14015e168]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1401186d0], 0
mov esi, r15d
mov edx, dword [rbp - 0x50]
jbe 0x14004b55d
nop dword [rax + rax]
mov eax, esi
mov rdi, qword [r12 + rax*8 + 0x95e900]
test rdi, rdi
je 0x14004b54f
mov ecx, dword [rdi + 0x68]
lea eax, [rcx - 3]
cmp eax, 1
jbe 0x14004b543
cmp qword [rdi], 0xffffffffffffffff
je 0x14004b54f
cmp ecx, 2
je 0x14004b457
movzx ebx, r15w
jmp 0x14004b46f
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x60]
movzx ebx, word [rdi + 0x42]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bx, bx
je 0x14004b4e2
mov rax, qword [rdi]
lea r8, [rbp + 0x2c0]
mov qword [rbp + 0x2c8], rax
xor r9d, r9d
mov qword [rsp + 0x68], r15
xor edx, edx
mov dword [rsp + 0x6c], 1
lea ecx, [rax + 1]
mov dword [rbp + 0x2c0], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x14004b4db
mov rcx, qword [rdi]
lea rdx, [rbp + 0x2c0]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004b4db
movzx ecx, word [rdi + 8]
call fcn.140047b20
cmp qword [rdi], 0xffffffffffffffff
je 0x14004b54c
mov dword [0x14095e3dc], r15d
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx ebx, word [rdi + 0x18]
mov rcx, qword [rdi + 0x38]
sub bx, word [rdi + 0x1a]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [rbp - 0x50]
test bx, bx
je 0x14004b54f
mov ecx, r15d
test edx, edx
je 0x14004b51d
mov r8, qword [rdi]
cmp qword [rbp + rcx*8 - 0x48], r8
je 0x14004b51d
inc ecx
cmp ecx, edx
jb 0x14004b510
cmp ecx, edx
jne 0x14004b536
cmp edx, 0x40
jae 0x14004b536
mov rax, qword [rdi]
mov qword [rbp + rcx*8 - 0x48], rax
mov edx, dword [rbp - 0x50]
inc edx
mov dword [rbp - 0x50], edx
mov rax, qword [rdi]
cmp r14, rax
jae 0x14004b54f
mov r14, rax
jmp 0x14004b54f
movzx ecx, word [rdi + 8]
call fcn.140047830
mov edx, dword [rbp - 0x50]
inc esi
cmp esi, dword [0x1401186d0]
jb 0x14004b420
mov r8, qword [0x14095e170]
mov ecx, r15d
test edx, edx
je 0x14004b57f
nop dword [rax + rax]
mov eax, ecx
cmp qword [rbp + rax*8 - 0x48], r8
je 0x14004b57f
inc ecx
cmp ecx, edx
jb 0x14004b570
cmp ecx, edx
jne 0x14004b592
cmp edx, 0x40
jae 0x14004b592
mov eax, ecx
mov qword [rbp + rax*8 - 0x48], r8
inc dword [rbp - 0x50]
imul eax, dword [0x14095e3dc], 0x3e8
lea ecx, [r14 + 1]
xor r9d, r9d
mov dword [rsp + 0x70], r15d
xor r8d, r8d
lea rdx, [rbp - 0x50]
add eax, 0xa
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x14095e3dc]
cmp ecx, 0x96
jae 0x14004b5dc
inc ecx
mov dword [0x14095e3dc], ecx
test eax, eax
jns 0x14004b6cf
mov byte [rbp + 0x1c0], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.vhub
mov edx, 0x100
mov dword [rsp + 0x20], 0x235
lea r8, str._s:_d:tcp__d_:
mov ebx, eax
lea rcx, [rbp + 0x1c0]
call fcn.1400217a0
lea rax, [rbp + 0x1c0]
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004b630
movsxd rax, ecx
mov edx, 0x100
sub edx, ecx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], edx
lea rcx, [rbp + 0x1c0]
add rcx, rax
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov ecx, 0x1200
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, [rbp + 0x1c0]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14004b680
cdqe
test rax, rax
jle 0x14004b6b2
movzx ecx, byte [rbp + rax + 0x1bf]
cmp cl, 0xa
je 0x14004b6a2
cmp cl, 0xd
jne 0x14004b6b2
mov byte [rbp + rax + 0x1bf], 0
dec rax
test rax, rax
jg 0x14004b690
lea rdx, [rbp + 0x1c0]
lea rcx, str.Select_:_s_n
call fcn.140040c90
mov rsi, qword [rsp + 0x58]
jmp 0x14004bd3d
je 0x14004b6c5
mov rcx, qword [0x14095e170]
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004b7e5
mov rcx, qword [0x14095e170]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x40], 0
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x14004b7e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ytcp
mov edx, 0x100
mov dword [rsp + 0x20], 0x11d
lea r8, str._s:_d:tcp__d_:
mov ebx, eax
lea rcx, [rbp + 0x1c0]
call fcn.1400217a0
lea rax, [rbp + 0x1c0]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004b751
movsxd rax, ecx
mov edx, 0x100
sub edx, ecx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], edx
lea rcx, [rbp + 0x1c0]
add rcx, rax
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov ecx, 0x1200
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, [rbp + 0x1c0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14004b7a0
cdqe
test rax, rax
jle 0x14004b7d2
movzx ecx, byte [rbp + rax + 0x1bf]
cmp cl, 0xa
je 0x14004b7c2
cmp cl, 0xd
jne 0x14004b7d2
mov byte [rbp + rax + 0x1bf], 0
dec rax
test rax, rax
jg 0x14004b7b0
lea rdx, [rbp + 0x1c0]
lea rcx, str.USB_traffic_event_consume_error__s__n
call fcn.140040c90
mov rcx, qword [0x14015e168]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r14, [0x1401596f0]
nop dword [rax]
cmp dword [r14 - 0x30], 1
jne 0x14004b877
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r14]
movzx ebx, word [r14 - 0x1e]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bx, bx
jne 0x14004b877
mov rcx, qword [r14 - 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14004b877
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004b877
mov rcx, qword [r14 - 0x28]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x2c0]
lea rax, [rbp - 0x78]
mov dword [rsp + 0x48], reloc.WS2_32.dll_recv
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x600
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r15d, eax
test eax, eax
jg 0x14004b88c
add r14, 0xc70
cmp r14, r13
jl 0x14004b800
jmp 0x14004b92f
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, word [r14 - 0x20]
mov r12, qword [r14 - 0x18]
mov rcx, qword [r14 - 8]
lea rbx, [r12 + rax]
sub ax, word [r14 - 0x1e]
cmp r15w, ax
ja 0x14004b909
movzx r8d, r15w
lea rdx, [rbp + 0x2c0]
lea rdi, [r8 + rcx]
cmp rdi, rbx
ja 0x14004b8d3
call fcn.140050fe0
cmp rdi, rbx
cmovne r12, rdi
jmp 0x14004b900
sub bx, cx
movzx esi, bx
mov r8d, esi
call fcn.140050fe0
movzx ebx, r15w
lea rdx, [rbp + 0x2c0]
sub rbx, rsi
add rdx, rsi
mov r8, rbx
mov rcx, r12
call fcn.140050fe0
add r12, rbx
add word [r14 - 0x1e], r15w
mov qword [r14 - 8], r12
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rbp - 0x74]
movzx ecx, word [rbp - 0x76]
mov dword [r14 + 8], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r14 + 0xc], ax
lea r12, [0x140000000]
mov rcx, qword [0x14015e168]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r15d, r15d
cmp dword [0x1401186d0], r15d
mov r13d, r15d
jbe 0x14004ba96
nop
mov eax, r13d
mov r14, qword [r12 + rax*8 + 0x95e900]
test r14, r14
je 0x14004ba83
mov eax, dword [r14 + 0x68]
sub eax, 3
cmp eax, 1
jbe 0x14004ba79
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x14004ba83
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004ba83
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx ebx, word [r14 + 0x18]
mov rcx, qword [r14 + 0x38]
sub bx, word [r14 + 0x1a]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx r8d, bx
test r8d, r8d
je 0x14004ba83
mov rcx, qword [r14]
lea rdx, [rbp + 0x2c0]
mov eax, 0x1000
cmp r8d, eax
cmova r8d, eax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov r15d, eax
test eax, eax
jle 0x14004ba79
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, word [r14 + 0x18]
mov r12, qword [r14 + 0x20]
mov rcx, qword [r14 + 0x30]
lea rbx, [r12 + rax]
sub ax, word [r14 + 0x1a]
cmp r15w, ax
ja 0x14004ba66
movzx r8d, r15w
lea rdx, [rbp + 0x2c0]
lea rdi, [r8 + rcx]
cmp rdi, rbx
ja 0x14004ba30
call fcn.140050fe0
cmp rdi, rbx
cmovne r12, rdi
jmp 0x14004ba5d
sub bx, cx
movzx esi, bx
mov r8d, esi
call fcn.140050fe0
movzx ebx, r15w
lea rdx, [rbp + 0x2c0]
sub rbx, rsi
add rdx, rsi
mov r8, rbx
mov rcx, r12
call fcn.140050fe0
add r12, rbx
add word [r14 + 0x1a], r15w
mov qword [r14 + 0x30], r12
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r12, [0x140000000]
jmp 0x14004ba83
movzx ecx, word [r14 + 8]
call fcn.140047830
inc r13d
cmp r13d, dword [0x1401186d0]
jb 0x14004b950
xor r15d, r15d
mov ebx, dword [0x140968428]
mov r14d, 0xf0
cmp ebx, 0xffffffff
je 0x14004bc27
movzx eax, bx
sub ax, r14w
cmp ax, 1
jbe 0x14004bc27
movzx eax, bx
cmp eax, dword [0x1401186d0]
jb 0x14004bade
lea r8d, [r14 - 0x7e]
lea rdx, str.....oslibusbtcp_os.c
lea rcx, str.ASSERT_FAILED:_s:_d_n
call fcn.140021b20
movzx eax, bx
lea rbx, [rax*8 + 0x95e900]
mov rax, qword [rbx + r12]
test rax, rax
jne 0x14004bb0d
lea r8d, [rax + 0x73]
lea rdx, str.....oslibusbtcp_os.c
lea rcx, str.ASSERT_FAILED:_s:_d_n
call fcn.140021b20
mov rax, qword [rbx + r12]
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x14004bc27
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004bc27
mov rcx, qword [0x14095e188]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x40], 1
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14004bc27
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
lea r9, str.ytcp
mov edx, 0x100
mov dword [rsp + 0x20], 0x114
lea r8, str._s:_d:tcp__d_:
mov ebx, eax
lea rcx, [rbp + 0x1c0]
call fcn.1400217a0
lea rax, [rbp + 0x1c0]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004bb93
movsxd rax, ecx
mov edx, 0x100
sub edx, ecx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], edx
lea rcx, [rbp + 0x1c0]
add rcx, rax
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov ecx, 0x1200
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, [rbp + 0x1c0]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14004bbe2
cdqe
test rax, rax
jle 0x14004bc14
movzx ecx, byte [rbp + rax + 0x1bf]
cmp cl, 0xa
je 0x14004bc04
cmp cl, 0xd
jne 0x14004bc14
mov byte [rbp + rax + 0x1bf], 0
dec rax
test rax, rax
jg 0x14004bbf2
lea rdx, [rbp + 0x1c0]
lea rcx, str.Hub_network_traffic_event_dropped___s__n
call fcn.140040c90
mov rsi, qword [rsp + 0x58]
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14004bd36
cmp dword [0x1401186d4], r14d
jae 0x14004bd36
mov ecx, 2
mov edi, 0xf1
nop dword [rax + rax]
movzx eax, cx
imul rdx, rax, 0x1b0
cmp dword [rdx + r12 + 0x9686c4], 0xffffffff
jne 0x14004bc80
cmp dword [rdx + r12 + 0x9686c8], 0xffffffff
je 0x14004bc8d
inc cx
cmp cx, di
jb 0x14004bc60
jmp 0x14004bd36
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x68]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004bd36
mov edx, 6
mov byte [rsp + 0x40], 1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 1
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rbx
call fcn.1400473e0
cmp word [0x1401186ac], di
jl 0x14004bcfc
lea rcx, str.WS:_no_more_strym_buff_for_StrymAlloc_n
call fcn.140040c90
mov ebx, 0xffffffff
jmp 0x14004bd2f
mov dword [rsp + 0x48], r15d
mov word [rsp + 0x48], ax
mov ebx, dword [rsp + 0x48]
cmp ax, r14w
jae 0x14004bd2f
movzx eax, ax
lea rcx, [rax + rax*4]
mov dword [r12 + rcx*4 + 0x98ff80], r15d
mov byte [r12 + rcx*4 + 0x98ff90], 0
mov ecx, ebx
call fcn.140022230
mov ecx, ebx
call fcn.140029970
lea r13, [0x14015e190]
cmp dword [0x14015e164], 0
jne 0x14004bd50
mov r14, qword [rsp + 0x60]
jmp 0x14004b0d8
mov r12, qword [rsp + 0x1408]
xor eax, eax
mov r13, qword [rsp + 0x1410]
mov rcx, qword [rbp + 0x12c0]
xor rcx, rsp
call fcn.14004ee60
mov rbx, qword [rsp + 0x1418]
add rsp, 0x13d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14004ef8c
int3
call fcn.1400472f0
int3