Function at 0x140036e60
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x1401bf0a0]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov rsi, r9
mov r14, rdx
mov qword [rsp + 0x40], rdx
mov r15, qword [rbp + 0x80]
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
lea rdx, [r9 + 0x58]
lea rcx, [rbp - 0x60]
call fcn.140010200
nop
lea rbx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rbx, qword [rbp - 0x58]
lea rdx, [rsi + 0x30]
lea rcx, [rsp + 0x78]
call fcn.140010200
mov dword [rsp + 0x30], 0x60
lea rdi, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdi, qword [rbp - 0x80]
test rdi, rdi
je 0x140036ef1
cmp byte [rdi], 0
jne 0x140036ef3
xor edi, edi
test rbx, rbx
je 0x140036efd
cmp byte [rbx], 0
jne 0x140036eff
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x38]
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, eax
cmp eax, 0x273f
jg 0x140036f8b
je 0x140036f81
test eax, eax
je 0x140036f63
sub ecx, 8
je 0x140036f56
sub ecx, 0x271e
je 0x140036f49
cmp ecx, 0x16
jne 0x140036fa5
mov dword [rsp + 0x20], 0x273c
jmp 0x140036fea
mov dword [rsp + 0x20], 0x2726
jmp 0x140036fea
mov dword [rsp + 0x20], setsockopt
jmp 0x140036fea
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
lea rax, [0x140195cb8]
mov qword [rsp + 0x28], rax
jmp 0x140037006
mov dword [rsp + 0x20], 0x273f
jmp 0x140036fea
sub ecx, 0x277d
je 0x140036fe2
sub ecx, 0x37c
je 0x140036fd8
sub ecx, 1
je 0x140036fce
cmp ecx, 1
je 0x140036fc4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
setne byte [rsp + 0x24]
lea rax, [0x140195cb8]
mov qword [rsp + 0x28], rax
jmp 0x140037006
mov dword [rsp + 0x20], 0x2afb
jmp 0x140036fea
mov dword [rsp + 0x20], 0x2afa
jmp 0x140036fea
mov dword [rsp + 0x20], 0x2af9
jmp 0x140036fea
mov dword [rsp + 0x20], 0x277d
lea rax, [0x140195cb8]
mov byte [rsp + 0x24], 1
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [r15], xmm0
lea rcx, [rsp + 0x78]
call fcn.140011c30
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
mov edx, select
call fcn.1400ba290
nop
lea rcx, [rbp - 0x60]
call fcn.140011c30
mov rcx, qword [rbp - 0x60]
mov qword [rbp - 0x60], 0
mov edx, select
call fcn.1400ba290
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
cmp byte [r15 + 4], 0
je 0x14003707e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r15d, r15d
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x48]
lea ebx, [r15 + 0x61]
jmp 0x1400370cc
lea rdx, [rsi + 0x58]
lea rcx, [rbp - 0x10]
call fcn.140010200
nop
mov dword [rsp + 0x30], 0xe2
lea rdx, [rsi + 0x30]
lea rcx, [rbp - 0x38]
call fcn.140010200
nop
mov dword [rsp + 0x30], 0x1e6
lea r9, [rbp - 0x10]
lea r8, [rbp - 0x38]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14003a8c0
mov rcx, rax
mov ebx, 0x1ee
xor r15d, r15d
mov qword [r14], r15
mov qword [r14 + 8], r15
mov rax, qword [rcx]
mov qword [r14], rax
mov rax, qword [rcx + 8]
mov qword [r14 + 8], rax
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov rax, qword [rcx + 0x10]
mov qword [r14 + 0x10], rax
mov qword [rcx + 0x10], r15
or ebx, 0x10
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
test bl, 8
je 0x140037143
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140037143
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14003713f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14003713f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsp + 0x30]
test bl, 4
je 0x14003716b
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x38]
call fcn.140011c30
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x38], r15
mov edx, select
call fcn.1400ba290
nop
test bl, 2
je 0x140037193
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
lea rcx, [rbp - 0x10]
call fcn.140011c30
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x10], r15
mov edx, select
call fcn.1400ba290
nop
test bl, 1
je 0x1400371d1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400371d1
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400371d1
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400371d1
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400371e1
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r14
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400ba210
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret