Function at 0x180012d00
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x368
mov qword [rsp + 0x120], 0xfffffffffffffffe
mov rax, qword [0x1800f8370]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x150]
call fcn.1800197e0
nop
mov dword [rsp + 0x19c], 0
lea rcx, [rsp + 0x58]
call fcn.180054ba0
nop
cmp dword [rsp + 0x388], 0xffffffff
jne 0x180012d8a
lea r8, [rsp + 0x58]
mov edx, dword [rsp + 0x398]
mov ecx, dword [rsp + 0x390]
call fcn.1800641a0
jmp 0x180012daa
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x398]
mov edx, dword [rsp + 0x390]
mov ecx, dword [rsp + 0x388]
call fcn.1800642c0
lea rcx, [rsp + 0x58]
call fcn.18001dab0
test rax, rax
jne 0x180012e58
mov dword [rsp + 0x19c], 1
mov byte [rsp + 0x150], 0
mov edx, 0x7df098
lea rcx, [rsp + 0x2e0]
call fcn.18005ec30
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x158]
call fcn.18000e300
lea rcx, [rsp + 0x2e0]
call fcn.180019c00
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x380]
call fcn.180019730
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x58]
call fcn.180019a80
nop
lea rcx, [rsp + 0x150]
call fcn.180019c50
mov rax, qword [rsp + 0x380]
jmp 0x1800134e9
cmp dword [rsp + 0x388], 0xffffffff
je 0x180012f9a
cmp dword [rsp + 0x390], 1
jne 0x180012f9a
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.180019e10
mov edx, dword [rax + 4]
lea rcx, [rsp + 0x1b0]
call fcn.18004b110
nop
lea rcx, [rsp + 0xe0]
call fcn.180054ba0
nop
lea rax, [rsp + 0x128]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsp + 0xc0]
call fcn.180006740
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
call fcn.18001ffc0
lea rcx, [rsp + 0xe0]
call fcn.180011aa0
test rax, rax
jbe 0x180012f7f
mov dword [rsp + 0x19c], 1
mov byte [rsp + 0x150], 0
lea rdx, [0x1800c8e3f]
lea rcx, [rsp + 0x158]
call fcn.18000e3f0
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x380]
call fcn.180019730
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0xe0]
call fcn.180028d30
nop
lea rcx, [rsp + 0x1b0]
call fcn.180007220
nop
lea rcx, [rsp + 0x58]
call fcn.180019a80
nop
lea rcx, [rsp + 0x150]
call fcn.180019c50
mov rax, qword [rsp + 0x380]
jmp 0x1800134e9
lea rcx, [rsp + 0xe0]
call fcn.180028d30
nop
lea rcx, [rsp + 0x1b0]
call fcn.180007220
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x48]
call fcn.180058ea0
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x58]
call fcn.18006b9a0
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
jmp 0x180012fdd
xor r8d, r8d
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x48]
call fcn.18001a0d0
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x58]
call fcn.18006bb10
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180028d90
movzx eax, al
test eax, eax
je 0x1800134a9
lea rcx, [rsp + 0x48]
call fcn.180054f30
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x180013118
mov byte [rsp + 0x150], 0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rsp + 0x250]
call fcn.18001db00
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xa8], rax
mov r8, qword [rsp + 0xa8]
lea rdx, [0x1800c8f28]
lea rcx, [rsp + 0x1f0]
call fcn.18000df20
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x158]
call fcn.18000e300
lea rcx, [rsp + 0x1f0]
call fcn.180007220
nop
lea rcx, [rsp + 0x250]
call fcn.180007220
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x380]
call fcn.180019730
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x58]
call fcn.180019a80
nop
lea rcx, [rsp + 0x150]
call fcn.180019c50
mov rax, qword [rsp + 0x380]
jmp 0x1800134e9
mov eax, dword [0x1800f8008]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [rsp + 0x84]
lea rcx, [rsp + 0x1d0]
call fcn.18004b110
nop
mov ecx, 0x220
call fcn.18007cd90
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1800131ab
mov edx, dword [0x1800f8004]
mov rcx, qword [rsp + 0x78]
call fcn.18001e220
mov qword [rsp + 0x70], rax
jmp 0x1800131b4
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
lea rcx, [0x180011f70]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [0x180012060]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [0x1800120a0]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [fcn.1800120b0]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
lea rcx, [0x180012420]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x50], rcx
mov rax, qword [rsp + 0x30]
movzx ecx, byte [reloc.WS2_32.dll_accept]
mov byte [rax + 0x7a], cl
mov rax, qword [rsp + 0x30]
mov ecx, dword [0x1800f8010]
mov dword [rax + 0x84], ecx
mov rax, qword [rsp + 0x30]
mov ecx, dword [0x1800f8014]
mov dword [rax + 0x88], ecx
cmp dword [0x1800fbcec], 0x64
jl 0x180013270
mov dword [0x1800fbcec], 0
mov eax, dword [0x1800fbcec]
inc eax
mov dword [0x1800fbcec], eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [0x1800fbcec]
mov dword [rax + 0x160], ecx
lea rcx, [rsp + 0x210]
call fcn.18002c620
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call fcn.18000e300
lea rcx, [rsp + 0x210]
call fcn.180007220
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x164], 0
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x80]
mov dword [rax + 0x18c], ecx
mov rax, qword [rsp + 0x30]
add rax, 0x168
lea rdx, [rsp + 0x1d0]
mov rcx, rax
call fcn.180007610
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x88]
mov dword [rax + 0x190], ecx
call fcn.18007eb70
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x194], eax
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x19c], 1
call fcn.18006f970
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 0x90], eax
mov eax, dword [section..data]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x18c], 0xb4
jne 0x180013364
mov dword [rsp + 0x3c], 0xd3d
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x18c], 0x1f4
jl 0x18001338e
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x18c], 0x257
jg 0x18001338e
mov dword [rsp + 0x3c], 0x1b58
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x3c]
mov word [rax + 0x188], cx
mov edx, 0x604282
lea rcx, [rsp + 0x270]
call fcn.18005ec30
nop
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x160]
lea rcx, [rsp + 0x230]
call fcn.18001db00
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
xor r8d, r8d
lea rdx, [0x1800c8de0]
lea rcx, [rsp + 0x278]
call fcn.18001cb10
mov r9, qword [rsp + 0x90]
mov r8d, 3
mov rdx, rax
lea rcx, [rsp + 0x278]
call fcn.18001da20
mov rdx, rax
lea rcx, [rsp + 0x278]
call fcn.180007610
nop
lea rcx, [rsp + 0x230]
call fcn.180007220
lea rcx, [rsp + 0x270]
call fcn.18005ee00
lea r8, [rsp + 0x30]
lea rdx, [0x180015f20]
lea rcx, [rsp + 0xf8]
call fcn.180016190
nop
lea rcx, [rsp + 0xf8]
call fcn.18001c050
mov byte [rsp + 0x150], 1
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0xf8]
call fcn.180019c80
nop
lea rcx, [rsp + 0x270]
call fcn.180019c00
nop
lea rcx, [rsp + 0x1d0]
call fcn.180007220
jmp 0x180012fc8
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x380]
call fcn.180019730
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x58]
call fcn.180019a80
nop
lea rcx, [rsp + 0x150]
call fcn.180019c50
mov rax, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.18007e510
add rsp, 0x368
pop rdi
pop rsi
ret