Function at 0x18001d2e8
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 0x18001d54d
mov dword [rsp + 0x280], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x30], 0
jmp 0x18001d372
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x30], eax
jae 0x18001d39d
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x4a0]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x288], rcx
jne 0x18001d39b
jmp 0x18001d39d
jmp 0x18001d368
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x30], eax
jne 0x18001d3dc
cmp dword [rsp + 0x280], 0x40
jae 0x18001d3dc
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 0x18001d35e
mov dword [rsp + 0x34], 0
jmp 0x18001d3fa
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jae 0x18001d41f
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x4a0]
mov rcx, qword [rcx + 0x20]
cmp qword [rsp + rax*8 + 0x78], rcx
jne 0x18001d41d
jmp 0x18001d41f
jmp 0x18001d3f0
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x34], eax
jne 0x18001d44f
cmp dword [rsp + 0x70], 0x40
jae 0x18001d44f
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 0x18001d3e6
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 0x18001d49a
jmp 0x18001d54d
lea rdx, [rsp + 0x280]
mov rax, qword [rsp + 0x4a0]
mov rcx, qword [rax + 0x20]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18001d548
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18001d4d8
jmp 0x18001d54d
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 0x18001d546
jmp 0x18001d54d
jmp 0x18001d54d
jmp 0x18001d33b
add rsp, 0x498
ret