Function at 0x18000a600
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
or dword [rax + 8], 0xffffffff
xor r13d, r13d
movzx r15d, r8w
cmp dword [0x1800252f8], r13d
mov r14, rdx
mov r12, rcx
mov esi, 0x276d
jg 0x18000a643
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x19458
call fcn.18001216c
test rax, rax
je 0x18000a65f
mov rcx, rax
call fcn.18000d370
mov rdi, rax
jmp 0x18000a661
xor edi, edi
mov ebx, 2
test rdi, rdi
jne 0x18000a679
lea ecx, [rbx + 6]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000a7cc
xor ecx, ecx
call fcn.18000b840
lea rcx, [rdi + 0x4120]
mov rbp, qword [rax]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x408c], r13d
je 0x18000a6ad
lea rcx, [rdi + 0x4120]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, 0x139f
jmp 0x18000a6ea
and qword [rsp + 0x20], r13
lea rdx, [rsp + 0x70]
mov r9d, ebx
mov r8, rbp
mov rcx, rdi
call fcn.180011200
lea rcx, [rdi + 0x4120]
mov ebp, eax
test eax, eax
je 0x18000a6da
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18000a6e2
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebp, ebp
test ebp, ebp
je 0x18000a7cc
cmp qword [rdi + 0x4080], r13
je 0x18000a78b
mov rbx, qword [0x180025738]
test rbx, rbx
jne 0x18000a76e
lea ecx, [rbx + 0x48]
call fcn.18001216c
mov rbx, rax
test rax, rax
je 0x18000a765
lea rcx, [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and dword [rbx + 8], r13d
and dword [rbx + 0xc], r13d
mov edx, 0x6000
mov ecx, 0x42
mov dword [rbx + 0x10], 0x400
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_LocalLock]
xor ecx, ecx
mov qword [rbx], rax
mov rax, qword [rbx]
add rcx, 0x18
and qword [rax + rcx - 0x10], r13
cmp rcx, 0x6000
jl 0x18000a74e
jmp 0x18000a767
xor ebx, ebx
mov qword [0x180025738], rbx
mov rax, qword [rdi + 0x4080]
xor r9d, r9d
mov rcx, rbx
movzx edx, word [rax + 0x4088]
lea r8d, [r9 + 1]
call fcn.18000bf70
lea rcx, [rdi + 0x19420]
call fcn.180011ad0
lea rcx, [rdi + 0x193e8]
call fcn.180011ad0
lea rcx, [rdi + 0x193b0]
call fcn.180011ad0
mov rcx, rdi
call fcn.18000ee00
mov rcx, rdi
call fcn.180012098
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 2
mov eax, dword [rsp + 0x70]
mov qword [r12 + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x18000a7e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000a83d
call fcn.180002564
mov rcx, r14
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000a800
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov r13d, dword [rcx]
movzx ecx, r15w
mov word [rsp + 0x30], bx
mov dword [rsp + 0x34], r13d
call qword [sym.imp.WS2_32.dll_htons]
cmp dword [0x1800252f8], 0
mov word [rsp + 0x32], ax
jle 0x18000a837
mov ecx, dword [r12 + 0x78]
lea rdx, [rsp + 0x30]
call fcn.18000bb70
mov esi, eax
test eax, eax
je 0x18000a83b
mov eax, esi
jmp 0x18000a83d
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret