Function at 0x1400492b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0xf8], rbp
jne 0x1400492ea
cmp qword [rcx + 0x100], rbp
jne 0x1400492ea
mov rdx, rcx
lea r8d, [rbp + 7]
lea rcx, [rsp + 0x50]
call fcn.140029010
or dword [rbx], 2
cmp qword [rdi + 0x1a0], rbp
jne 0x1400494fc
cmp qword [rdi + 0x12c8], rbp
jne 0x140049320
mov rcx, qword [rdi + 0xbf0]
call qword [sub.MSVCR120.dll_malloc]
mov qword [rdi + 0x12c8], rax
test rax, rax
je 0x14004943e
mov rax, qword [rdi + 0x12c8]
mov qword [rdi + 0x1a8], rax
cmp dword [rdi + 0x650], ebp
jne 0x1400495ee
cmp dword [rdi + 0x170], 2
mov rcx, qword [rdi + 0x1b0]
jne 0x14004939d
cmp dword [rcx + 0x208], 2
jne 0x14004939d
and dword [rdi + 0x18c], 0xfffffffd
lea rcx, [rsp + 0x50]
mov dword [rdi + 0x170], 1
call fcn.140025250
xor r8d, r8d
mov rcx, qword [rax]
mov qword [rdi + 0x160], rcx
mov rax, qword [rax + 8]
mov rcx, rdi
mov qword [rdi + 0x168], rax
and dword [rbx], 0xfffffffd
movsxd rdx, dword [rdi + 0xf58]
call fcn.140016250
jmp 0x140049741
mov rax, qword [rsi + 0x748]
test dword [rax + 0x7c], 0x40003
je 0x1400493b8
cmp dword [rcx + 0x208], 1
sete bpl
mov rdx, qword [rdi + 0xbf0]
lea r8, [rsp + 0x80]
mov rcx, rsi
call fcn.140048560
test eax, eax
jne 0x140049743
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x1400495ee
jle 0x1400495fb
mov qword [rdi + 0x1a0], rbx
test ebp, ebp
jne 0x1400494d9
cmp dword [rdi + 0xfd0], ebp
je 0x1400494d9
cmp qword [rdi + 0x1370], 0
jne 0x140049453
mov rcx, qword [rdi + 0xbf0]
add rcx, rcx
call qword [sub.MSVCR120.dll_malloc]
mov qword [rdi + 0x1370], rax
test rax, rax
jne 0x140049453
lea rdx, str.Failed_to_alloc_scratch_buffer_
mov rcx, rdi
call fcn.140019080
mov eax, reloc.WLDAP32.dll_Ordinal_27
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
xor ecx, ecx
test rbx, rbx
jle 0x1400494bc
nop dword [rax]
mov rax, qword [rdi + 0x1a8]
movzx r8d, byte [rdx + rax]
mov rax, qword [rdi + 0x1370]
cmp r8b, 0xa
jne 0x1400494ad
mov byte [rcx + rax], reloc.WS2_32.dll_listen
mov rax, qword [rdi + 0x1370]
inc rcx
mov byte [rcx + rax], r8b
cmp dword [rdi + 0xfd0], 0
jne 0x1400494b1
mov rax, qword [rdi + 0x1710]
cmp rax, 0xffffffffffffffff
je 0x1400494b1
inc rax
mov qword [rdi + 0x1710], rax
jmp 0x1400494b1
mov byte [rcx + rax], r8b
inc rdx
inc rcx
cmp rdx, rbx
jl 0x140049460
cmp rcx, rbx
je 0x1400494d9
mov rax, qword [rdi + 0x1370]
mov rbx, rcx
mov qword [rdi + 0x1a0], rcx
mov qword [rdi + 0x1a8], rax
mov rax, qword [rsi + 0x748]
test dword [rax + 0x7c], 0x30000
je 0x1400494fc
mov rdx, rbx
mov rcx, rsi
call fcn.140037d00
test eax, eax
jne 0x140049743
mov r9, qword [rdi + 0x1a0]
mov r8, qword [rdi + 0x1a8]
mov rdx, qword [rsi + 0x780]
lea rax, [rsp + 0x98]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.140018c20
test eax, eax
jne 0x140049743
mov rbx, qword [rsi + 0x780]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov edx, 0x4004747b
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1400495a5
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x14004962f
mov rbx, qword [rsp + 0x98]
mov r8, qword [rdi + 0x1a8]
mov edx, 2
cmp rax, rbx
mov rcx, rdi
cmovl rbx, rax
mov r9, rbx
call fcn.140018e50
mov rcx, qword [rsp + 0x98]
sub qword [rdi + 0x118], rbx
mov rbp, rcx
sub rbp, rbx
jmp 0x14004963a
test byte [rdi + 0x18c], 0x20
jne 0x140049741
and dword [rdi + 0x18c], 0xfffffffd
cmp dword [rsi + 0x6d8], 0
je 0x140049741
mov rcx, rsi
call fcn.140048910
test eax, eax
je 0x140049741
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x98]
mov rbp, rcx
test rbp, rbp
je 0x14004967a
sub rcx, rbp
mov r9, rbp
mov edx, 4
add rcx, qword [rdi + 0x1a8]
mov r8, rcx
mov rcx, rdi
call fcn.140018e50
add qword [rdi + 0x100], rbp
mov rdx, qword [rdi + 0x100]
mov rcx, rdi
call fcn.140029340
mov rcx, qword [rsp + 0x98]
cmp dword [rdi + 0x660], 0
je 0x14004968c
cmp dword [rdi + 0x668], 0
je 0x1400496bd
mov rax, qword [rdi + 0x1710]
cmp qword [rdi + 0x100], rax
jne 0x1400496bd
lea rdx, str.We_are_completely_uploaded_and_fine_n
mov rcx, rdi
mov dword [rdi + 0x650], 1
call fcn.140018f20
mov rcx, qword [rsp + 0x98]
mov rax, qword [rdi + 0x1a0]
cmp rax, rcx
je 0x1400496dc
sub rax, rcx
add qword [rdi + 0x1a8], rcx
mov qword [rdi + 0x1a0], rax
jmp 0x140049741
cmp qword [rdi + 0x12c8], 0
jne 0x140049703
mov rcx, qword [rdi + 0xbf0]
call qword [sub.MSVCR120.dll_malloc]
mov qword [rdi + 0x12c8], rax
test rax, rax
je 0x14004943e
cmp dword [rdi + 0x650], 0
mov rax, qword [rdi + 0x12c8]
mov qword [rdi + 0x1a0], 0
mov qword [rdi + 0x1a8], rax
je 0x140049741
and dword [rdi + 0x18c], 0xfffffffd
cmp dword [rsi + 0x6d8], 0
je 0x140049741
mov rcx, rsi
call fcn.140048910
test eax, eax
jne 0x140049743
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret