Function at 0x140224b20
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rcx
xor r8d, r8d
lea edx, [r8 + 1]
mov ebx, reloc.WS2_32.dll_socket
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, rax
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140224b7b
lea eax, [rbx - 0x19]
jmp 0x140224de0
mov dword [rsp + 0x30], 1
mov rax, qword [rdi + 0x50]
cmp byte [rax + 0xcc], 0
je 0x140224bcf
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140224bcf
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
mov eax, 0xfffffffd
jmp 0x140224de0
mov dl, 1
mov rcx, qword [rdi + 0x70]
call fcn.14013b120
mov rdx, qword [rdi + 0x50]
add rdx, 0xd0
lea rcx, [rbp - 0x80]
call fcn.14001c0d0
nop
lea rcx, [rbp - 0x80]
call fcn.140026680
test al, al
jne 0x140224c24
lea rdx, [0x1402d4174]
lea rcx, [rbp - 0x58]
call fcn.14001c950
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x80]
call fcn.14001d690
nop
lea rcx, [rbp - 0x58]
call fcn.14001d440
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], eax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140022ea0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140224c52
mov rax, qword [rax]
lea r8, [rsp + 0x40]
mov rdx, rax
mov ecx, ebx
call fcn.14013ada0
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140224c9f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140224c9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140224e01
call fcn.140283144
movdqa xmm0, xmmword [0x1402d0510]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov word [rsp + 0x40], bx
mov rax, qword [rdi + 0x50]
movzx ecx, word [rax + 0xf8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov r8d, SQLFreeHandle
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140224db5
lea rdx, str.e:worksuniaccess_unimon_blowsnow_source_smartice_sitcpserverlistenthread.cpp
lea rcx, [rbp + 0x20]
call fcn.14001c950
nop
lea rdx, str._fail
lea rcx, [rbp - 8]
call fcn.14001c950
nop
mov rax, qword [rdi + 0x50]
mov r8d, 0xa
mov edx, dword [rax + 0xf8]
lea rcx, [rbp - 0x30]
call fcn.14001c580
nop
lea rdx, str.bind_port:
lea rcx, [rbp + 0x48]
call fcn.14001c950
nop
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.14001d850
mov rcx, rax
lea rdx, [rbp - 8]
call fcn.14001d850
mov rbx, rax
call fcn.140188020
mov rcx, rax
mov dword [rsp + 0x20], 2
mov r9d, 0x15b
lea r8, [rbp + 0x20]
mov rdx, rbx
call fcn.140188520
nop
lea rcx, [rbp + 0x48]
call fcn.14001d440
nop
lea rcx, [rbp - 0x30]
call fcn.14001d440
nop
lea rcx, [rbp - 8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x20]
call fcn.14001d440
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x70], 0xffffffffffffffff
mov ebx, 0xfffffffe
jmp 0x140224dd5
mov edx, 0x64
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140224dcf
mov ebx, 0xfffffffe
jmp 0x140224dd5
mov byte [rdi + 0x60], 1
xor ebx, ebx
lea rcx, [rbp - 0x80]
call fcn.14001d440
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140287d84
nop
int3