Function at 0x18001cae8
Capabilities:
Get socket status
Resolve dns
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x498
mov dword [rsp + 0x3c], reloc.WS2_32.dll_recv
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x7530
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0x64
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x38]
jae 0x18001cd4d
mov dword [rsp + 0x280], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x30], 0
jmp 0x18001cb72
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x30], eax
jae 0x18001cb9d
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x4a0]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x288], rcx
jne 0x18001cb9b
jmp 0x18001cb9d
jmp 0x18001cb68
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x30], eax
jne 0x18001cbdc
cmp dword [rsp + 0x280], 0x40
jae 0x18001cbdc
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x4a0]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x288], rcx
mov eax, dword [rsp + 0x280]
inc eax
mov dword [rsp + 0x280], eax
xor eax, eax
test eax, eax
jne 0x18001cb5e
mov dword [rsp + 0x34], 0
jmp 0x18001cbfa
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jae 0x18001cc1f
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x4a0]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x78], rcx
jne 0x18001cc1d
jmp 0x18001cc1f
jmp 0x18001cbf0
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jne 0x18001cc4f
cmp dword [rsp + 0x70], 0x40
jae 0x18001cc4f
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x4a0]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + rax*8 + 0x78], rcx
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
xor eax, eax
test eax, eax
jne 0x18001cbe6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x280]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0x4a0]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001cc9a
jmp 0x18001cd4d
lea rdx, [rsp + 0x280]
mov rax, qword [rsp + 0x4a0]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001cd48
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18001ccd8
jmp 0x18001cd4d
mov eax, 2
mov word [rsp + 0x58], ax
movzx ecx, word [rsp + 0x4b8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x4b0]
mov rdx, qword [rsp + 0x4a8]
mov rax, qword [rsp + 0x4a0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x18001cd46
jmp 0x18001cd4d
jmp 0x18001cd4d
jmp 0x18001cb3b
add rsp, 0x498
ret