Function at 0x140041e80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov rdi, qword [0x1401dd8a0]
lea rax, [rdi + 1]
mov qword [0x1401dd8a0], rax
lea rax, vtable.xmrig::HttpData.0
mov qword [rcx], rax
xor r15d, r15d
mov qword [rcx + 8], r15
mov dword [rcx + 0x10], r15d
lea rbx, [rcx + 0x18]
mov qword [rsp + 0x90], rbx
mov qword [rbx], r15
mov qword [rbx + 8], r15
call fcn.140024e40
mov qword [rbx], rax
mov qword [rsi + 0x38], r15
mov qword [rsi + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x28], r15b
mov qword [rsi + 0x58], r15
mov qword [rsi + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x48], r15b
mov qword [rsi + 0x68], r15
mov qword [rsi + 0x70], rdi
lea rax, vtable.xmrig::HttpContext.0
mov qword [rsi], rax
mov byte [rsi + 0x80], r15b
call fcn.1401270f0
mov rbx, rax
call fcn.1401270d4
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsi + 0x88], rdx
mov qword [rsi + 0xa8], r15
mov qword [rsi + 0xb0], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0x98], r15b
mov qword [rsi + 0xc8], r15
mov qword [rsi + 0xd0], reloc.WS2_32.dll_ntohs
mov byte [rsi + 0xb8], r15b
mov qword [rsi + 0xd8], r15
mov qword [rsi + 0xe0], r15
mov rax, qword [r14 + 8]
test rax, rax
je 0x140041fb4
lock inc dword [rax + 0xc]
mov rax, qword [r14]
mov qword [rsi + 0xd8], rax
mov rax, qword [r14 + 8]
mov qword [rsi + 0xe0], rax
mov rcx, qword [rsi + 0x70]
mov qword [rsp + 0x90], rcx
mov rdx, qword [0x1401da1c8]
mov rbx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x140042013
nop dword [rax]
cmp qword [rax + 0x20], rcx
jae 0x140041ffc
mov rax, qword [rax + 0x10]
jmp 0x140042002
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140041ff0
cmp rbx, rdx
je 0x140042013
cmp rcx, qword [rbx + 0x20]
jae 0x14004204b
lea rax, [rsp + 0x90]
mov qword [rsp + 0x98], rax
lea r8, [rsp + 0x98]
call fcn.140043050
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x30]
call fcn.140043090
mov rbx, qword [rsp + 0x30]
mov qword [rbx + 0x28], rsi
mov ecx, 0x60
call fcn.140128f74
mov qword [rsi + 0x90], rax
mov ecx, 0x140
call fcn.140128f74
mov qword [rsi + 0x78], rax
mov r8, qword [0x1401dd8d0]
test r8, r8
jne 0x140042096
call fcn.1400f4cb0
test eax, eax
je 0x140042088
mov r8, r15
jmp 0x140042096
lea r8, [0x1401dd8e0]
mov qword [0x1401dd8d0], r8
mov rdx, qword [rsi + 0x78]
mov qword [rdx + 8], r8
mov dword [rdx + 0x10], ntohs
mov dword [rdx + 0x58], 8
lea rcx, [rdx + 0x20]
lea rax, [r8 + 0x10]
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [r8 + 0x18], rcx
mov dword [rdx + 0x30], 0xffffffff
mov qword [rdx + 0x60], r15
mov qword [rdx + 0x78], r15
mov qword [rdx + 0x108], r15
mov dword [rdx + 0x100], r15d
mov dword [rdx + 0x88], ntohs
mov qword [rdx + 0xc0], r15
mov qword [rdx + 0xf0], r15
mov qword [rdx + 0xf8], 0xffffffffffffffff
mov qword [rdx + 0x80], rdx
mov qword [rdx + 0x120], r15
mov qword [rdx + 0x110], 0xffffffffffffffff
mov qword [rdx + 0x138], r15
mov qword [rdx + 0x130], r15
mov dword [rdx + 0x128], r15d
mov dword [rdx + 0x118], r15d
mov rbx, qword [rsi + 0x78]
mov rcx, qword [rbx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x140042185
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x88]
mov edx, 6
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140042185
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14004218c
or dword [rbx + 0x58], 0x1000000
mov rbx, qword [rsi + 0x90]
xor edx, edx
lea r8d, [rdx + 0x60]
mov rcx, rbx
call fcn.140147f00
mov qword [rbx + 0x38], 0xb5
mov byte [rbx + 0x48], bpl
lea rax, [0x1401dd830]
mov qword [rbx + 0x58], rax
mov rax, qword [rsi + 0x78]
mov qword [rax], rsi
mov rax, qword [rsi + 0x90]
mov qword [rax + 0x30], rsi
cmp qword [0x1401dd868], 0
jne 0x140042244
mov qword [0x1401dd830], r15
mov qword [0x1401dd840], r15
mov qword [0x1401dd870], r15
mov qword [0x1401dd878], r15
lea rax, [0x140042b30]
mov qword [0x1401dd838], rax
lea rax, [0x140042840]
mov qword [0x1401dd848], rax
lea rax, [0x1400429d0]
mov qword [0x1401dd850], rax
lea rax, [0x140042bf0]
mov qword [0x1401dd858], rax
lea rax, [0x140042c30]
mov qword [0x1401dd860], rax
lea rax, [0x140042c50]
mov qword [0x1401dd868], rax
mov rax, rsi
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret