Function at 0x14002de40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
movzx eax, byte [rcx + 0x160]
mov rbx, rcx
mov rsi, qword [rcx + 0x20]
mov byte [rcx + 0x125], 1
test al, al
jne 0x14002e71b
xor ebp, ebp
lea r14, [0x140000000]
lea r15d, [rbp + 9]
lea r12d, [rbp + 0xd]
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [rbx + 0x128]
cmp eax, 0x14
ja case.default.0x14002deab
mov ecx, dword [r14 + rax*4 + 0x2e790]
add rcx, r14
jmp rcx
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.14002bea0
test rax, rax
je 0x14002deeb
cmp byte [rax], bpl
je 0x14002deeb
mov r8, qword [rsp + 0x68]
mov rdx, rax
mov rcx, rbx
call fcn.14002c350
test eax, eax
je 0x14002e3c9
mov dword [rbx + 0x128], 1
jmp 0x14002e58b
cmp dword [rbx + 0x128], ebp
jmp 0x14002e199
xor edx, edx
mov rcx, rbx
call fcn.14002bea0
test rax, rax
jne 0x14002df11
cmp dword [rbx + 0x128], 1
jmp 0x14002e199
cmp byte [rax], bpl
jne 0x14002df30
sub rax, qword [rbx + 0x78]
mov qword [rbx + 0xd8], rax
mov dword [rbx + 0x128], 3
jmp 0x14002e58b
mov rdx, rax
mov rcx, rbx
call fcn.14002c9d0
test eax, eax
je 0x14002e5d9
mov dword [rbx + 0x128], 2
jmp 0x14002e58b
xor edx, edx
mov rcx, rbx
call fcn.14002bea0
mov rdi, rax
test rax, rax
jne 0x14002df70
cmp dword [rbx + 0x128], 2
jmp 0x14002e199
mov r8d, 1
mov rdx, rdi
mov rcx, rbx
call fcn.14002cab0
test eax, eax
je 0x14002e58b
cmp byte [rdi], bpl
jne 0x14002e58b
sub rdi, qword [rbx + 0x78]
mov qword [rbx + 0xd8], rdi
mov dword [rbx + 0x128], 3
jmp 0x14002e58b
mov rcx, rbx
call fcn.14002cc60
cmp dword [rbx + 0x128], 0x13
je 0x14002e58b
mov dword [rbx + 0x128], 4
jmp 0x14002e116
mov rcx, rbx
call fcn.14002c4f0
cmp dword [rbx + 0x128], 0x13
je 0x14002e58b
mov rcx, rbx
call fcn.140029b60
test eax, eax
jne 0x14002e5f6
cmp qword [rbx + 0x38], rbp
je 0x14002e033
mov rdi, qword [rbx + 0x58]
lea rdx, str.POST
mov rcx, rdi
call fcn.14002fe90
test eax, eax
jne 0x14002e025
lea rdx, [0x1402dec54]
mov rcx, rdi
call fcn.14002fe90
test eax, eax
je 0x14002e033
mov qword [rbx + 0xe0], rbp
mov byte [rbx + 0x123], 1
cmp qword [rbx + 0xe0], rbp
mov eax, 6
cmove eax, r15d
jmp 0x14002e110
cmp qword [rbx + 0xf0], 0x19
jne case.0x14002deab.10
mov dword [rbx + 0x128], 6
cmp byte [rbx + 0x121], bpl
je 0x14002e58b
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x60]
mov edx, 6
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14002e58b
mov byte [rbx + 0x121], bpl
jmp 0x14002e58b
cmp qword [rbx + 0xb8], rbp
je 0x14002e0c6
mov rcx, rbx
call fcn.14002c570
cmp dword [rbx + 0x128], 0x13
je 0x14002e58b
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x14002e0f6
cmp rax, 0xffffffffffffffff
jne case.0x14002deab.10
cmp qword [rbx + 0xb8], rbp
jne case.0x14002deab.10
cmp byte [rbx + 0x123], bpl
je case.0x14002deab.10
cmp byte [rbx + 0x134], bpl
je 0x14002e10d
mov eax, 7
cmp byte [rbx + 0x123], bpl
je 0x14002e110
mov eax, r15d
mov dword [rbx + 0x128], eax
cmp byte [rbx + 0x160], bpl
jne case.0x14002deab.10
jmp 0x14002e58b
xor edx, edx
mov rcx, rbx
call fcn.14002bea0
test rax, rax
jne 0x14002e140
cmp dword [rbx + 0x128], 7
jmp 0x14002e199
cmp byte [rax], bpl
jne 0x14002e15e
mov dword [rbx + 0x128], r15d
cmp byte [rbx + 0x160], bpl
jne case.0x14002deab.10
jmp 0x14002e58b
mov rdx, rax
mov rcx, rbx
call fcn.14002c9d0
test eax, eax
je 0x14002e653
mov dword [rbx + 0x128], 8
jmp 0x14002e58b
xor edx, edx
mov rcx, rbx
call fcn.14002bea0
mov rdi, rax
test rax, rax
jne 0x14002e1be
cmp dword [rbx + 0x128], 8
jne 0x14002e58b
cmp byte [rbx + 0x123], bpl
je case.0x14002deab.10
mov edx, 1
mov rcx, rbx
call fcn.140029c80
jmp 0x14002e58b
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rdi
mov rcx, rbx
call fcn.14002cab0
test eax, eax
je 0x14002e58b
cmp byte [rdi], bpl
jne 0x14002e58b
mov dword [rbx + 0x128], r15d
cmp byte [rbx + 0x160], bpl
jne case.0x14002deab.10
jmp 0x14002e58b
mov rcx, rbx
call fcn.14002c4f0
cmp dword [rbx + 0x128], 0x13
je 0x14002e58b
cmp qword [rbx + 0x38], rbp
je case.0x14002deab.10
mov rcx, rbx
call fcn.14002a770
test eax, eax
jne 0x14002e673
lea rdx, [0x1402e21a0]
jmp 0x14002e3c0
mov rax, qword [rbx + 0x38]
cmp qword [rax + 0x28], rbp
je 0x14002e2b8
cmp byte [rbx + 0x121], bpl
je 0x14002e279
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x60]
mov edx, 6
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14002e279
mov byte [rbx + 0x121], bpl
mov rcx, qword [rbx + 0x38]
mov rdx, rbx
mov dword [rbx + 0x128], socket
call fcn.14002edf0
cmp eax, 1
je 0x14002e2a6
mov edx, 1
mov rcx, rbx
call fcn.140029c80
jmp 0x14002e58b
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0x38], rbp
call fcn.14002ef40
jmp 0x14002e58b
cmp byte [rbx + 0x121], bpl
je 0x14002e2f3
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x60]
mov edx, 6
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14002e2f3
mov byte [rbx + 0x121], bpl
cmp byte [rbx + 0x134], bpl
mov eax, reloc.WS2_32.dll_ntohs
cmove eax, r12d
mov dword [rbx + 0x128], eax
jmp 0x14002e58b
mov rcx, qword [rbx + 0x38]
cmp qword [rcx + 0x18], rbp
je 0x14002e326
add rcx, 0x38
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rcx, qword [rbx + 0x38]
cmp qword [rcx + 0x60], rbp
jne 0x14002e6c8
cmp qword [rcx + 0x18], rbp
je 0x14002e340
add rcx, 0x38
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov dword [rbx + 0x128], reloc.WS2_32.dll_recv
jmp 0x14002e58b
mov rcx, qword [rbx + 0x38]
cmp qword [rcx + 0x18], rbp
je 0x14002e367
add rcx, 0x38
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rcx, qword [rbx + 0x38]
mov rax, qword [rcx + 0x60]
test rax, rax
je 0x14002e330
cmp qword [rbx + 0xe8], rax
je 0x14002e330
mov rcx, rbx
call fcn.140029e70
cmp eax, 1
jne case.0x14002deab.10
mov rcx, qword [rbx + 0x38]
cmp qword [rcx + 0x18], rbp
je 0x14002e39e
add rcx, 0x38
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov dword [rbx + 0x128], send
jmp 0x14002e58b
mov rcx, rbx
call fcn.14002a770
test eax, eax
jne 0x14002e3db
lea rdx, [0x1402e2078]
mov rcx, qword [rbx + 0x20]
call fcn.14002fa20
mov edx, 1
mov rcx, rbx
call fcn.140029c80
jmp 0x14002e58b
cmp byte [rbx + 0x134], bpl
je 0x14002e3f9
mov rax, qword [rbx + 0xd0]
cmp qword [rbx + 0xc8], rax
mov eax, send
jne 0x14002e3fe
mov eax, reloc.WS2_32.dll_select
mov dword [rbx + 0x128], eax
jmp 0x14002e58b
cmp dword [rbx + 0x130], 0x66
jne 0x14002e42e
mov rcx, qword [rbx + 0x38]
mov dword [rbx + 0x128], 4
call fcn.14002ef40
mov qword [rbx + 0x38], rbp
jmp 0x14002e58b
cmp byte [rbx + 0x121], bpl
je 0x14002e469
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x60]
mov edx, 6
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14002e469
mov byte [rbx + 0x121], bpl
mov rcx, qword [rbx + 0x38]
call fcn.14002ef40
mov qword [rbx + 0x38], rbp
mov rax, qword [rsi + 0x70]
test rax, rax
je 0x14002e498
cmp byte [rbx + 0x114], bpl
je 0x14002e498
mov rcx, qword [rsi + 0x78]
lea r8, [rbx + 0x48]
xor r9d, r9d
mov rdx, rbx
call rax
cmp dword [rbx + 0x70], 1
mov byte [rbx + 0x114], bpl
jne 0x14002e506
cmp byte [rbx + 0x123], bpl
jne 0x14002e506
mov rax, qword [rbx + 0x20]
mov r8, qword [rbx + 0xb8]
mov rdx, qword [rbx + 0x78]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x68], rbp
mov dword [rbx + 0x128], ebp
mov qword [rbx + 0x88], rbp
mov qword [rbx + 0x90], rbp
mov qword [rbx + 0xd8], rbp
mov dword [rbx + 0x70], ebp
mov r9, qword [rax + 0xd8]
shr r9, 1
call fcn.14002f990
mov qword [rbx + 0x78], rax
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0xd8]
shr rcx, 1
jmp 0x14002e52b
xor edx, edx
mov rcx, rbx
call fcn.140029c80
mov rcx, qword [rbx + 0x40]
call fcn.14002f830
mov rcx, rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x78], rbp
mov qword [rbx + 0xb8], rbp
mov qword [rbx + 0xb0], rcx
mov qword [rbx + 0x48], rbp
mov qword [rbx + 0xf0], rbp
mov dword [rbx + 0x130], ebp
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rbp
mov qword [rbx + 0xe8], rbp
mov byte [rbx + 0x134], bpl
mov qword [rbx + 0x138], rbp
mov qword [rbx + 0x140], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x60], rbp
mov qword [rbx + 0x80], rbp
mov qword [rbx + 0xc0], rbp
mov qword [rbx + 0xc8], rbp
mov qword [rbx + 0xd0], rbp
movzx eax, byte [rbx + 0x160]
test al, al
je 0x14002de90
test al, al
jne 0x14002e71b
mov rdi, qword [rbx + 0x108]
test rdi, rdi
je 0x14002e71b
call fcn.14002f7f0
sub rax, qword [rbx + 0x100]
cmp rdi, rax
jge 0x14002e71b
mov edx, 2
mov rcx, rbx
call fcn.140029c80
jmp 0x14002e723
lea r8, [0x1402e2290]
mov edx, 0x190
mov rcx, rbx
call fcn.14002b940
movzx eax, byte [rbx + 0x160]
jmp 0x14002e59a
mov dword [rbx + 0x128], 5
cmp byte [rbx + 0x121], bpl
jne case.0x14002deab.10
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x60]
mov edx, 6
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne case.0x14002deab.10
movzx eax, byte [rbx + 0x160]
mov byte [rbx + 0x121], 1
jmp 0x14002e59a
lea r8, [0x1402e21e0]
mov edx, 0x190
mov rcx, rbx
call fcn.14002b940
movzx eax, byte [rbx + 0x160]
jmp 0x14002e59a
mov dword [rbx + 0x128], 0xa
cmp byte [rbx + 0x121], bpl
jne case.0x14002deab.10
mov rcx, qword [rbx + 0x118]
lea r9, [rsp + 0x60]
mov edx, 6
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne case.0x14002deab.10
movzx eax, byte [rbx + 0x160]
mov byte [rbx + 0x121], 1
jmp 0x14002e59a
mov rcx, rbx
call fcn.140029d30
cmp eax, 1
jne case.0x14002deab.10
mov rcx, qword [rbx + 0x38]
cmp qword [rcx + 0x18], rbp
je 0x14002e6e9
add rcx, 0x38
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov dword [rbx + 0x128], send
movzx eax, byte [rbx + 0x160]
jmp 0x14002e59a
mov rcx, rbx
call fcn.14002d940
xor eax, eax
mov byte [rbx + 0x125], bpl
jmp 0x14002e72f
mov byte [rbx + 0x125], bpl
jmp 0x14002e72a
mov rcx, rbx
call fcn.14002bab0
mov byte [rbx + 0x125], 0
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
lea r8, [0x1402e2160]
lea rax, [0x1402deb54]
mov r9d, 0xece
lea rdx, [0x1402e2130]
mov qword [rsp + 0x20], rax
call fcn.1400108b0
mov ecx, 2
call fcn.1401d9d24
mov rcx, rax
call fcn.1401db71c
call fcn.1401e9cd4
int3