Function at 0x14004d9c0
Capabilities:
Create udp socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r15
sub rsp, 0xa8
xor edi, edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov r12, rcx
mov eax, 2
mov qword [rsp + 0x50], rdi
mov edx, eax
mov ecx, eax
lea r8d, [rdi + 0x11]
mov r15d, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x68], rax
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14004da26
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14004dacc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004dd2f
mov qword [rsp + 0xa0], rbx
xor ecx, ecx
mov qword [rsp + 0x98], rsi
mov ebx, 0x4c0
mov edx, ebx
mov qword [rsp + 0x88], r14
mov esi, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r14, rax
test rax, rax
je 0x14004dac2
nop word [rax + rax]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x4004747f
mov rcx, rbp
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x58], r14
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14004daec
inc esi
cmp esi, 0x64
jge 0x14004dadf
add ebx, 0x4c0
mov rcx, r14
mov edx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r14, rax
test rax, rax
jne 0x14004da60
mov r15, qword [rsp + 0x58]
mov edi, 0x2747
jmp 0x14004dcf8
mov eax, 0xffffe5d4
add rsp, 0xa8
pop r15
pop r12
pop rdi
pop rbp
ret
mov edi, 0x2741
mov r15, r14
jmp 0x14004dcf8
mov ecx, dword [rsp + 0xe0]
movabs rax, 0xd79435e50d79435f
mul rcx
mov qword [rsp + 0x90], r13
shr rdx, 6
movsxd r15, edx
mov qword [rsp + 0xe8], r15
test edx, edx
jle 0x14004dcc4
mov rax, qword [rsp + 0xe8]
mov r12, rdi
mov r15d, 1
cmp word [r14 + 4], 2
jne 0x14004dca9
xor eax, eax
mov dword [rsp + 0xd8], edi
mov qword [rsp + 0x70], rax
mov r13d, edi
mov rbx, rdi
mov esi, edi
xor r8d, r8d
lea rdx, [rsp + 0xd8]
mov rcx, rbx
call sub.IPHLPAPI.DLL_GetIpAddrTable
mov ebp, eax
cmp eax, 0x7a
jne 0x14004db91
mov edx, dword [rsp + 0xd8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbx, rax
test rax, rax
je 0x14004dca1
inc esi
cmp esi, 0x64
jb 0x14004db52
jmp 0x14004dbd9
test eax, eax
jne 0x14004dbd9
mov r8d, dword [rbx]
mov ebp, 0xfffeffff
mov ecx, edi
test r8d, r8d
je 0x14004dbd9
mov r9d, dword [r14 + 8]
nop dword [rax + rax]
mov edx, ecx
lea rax, [rdx + rdx*2]
cmp r9d, dword [rbx + rax*8 + 4]
je 0x14004dbc6
inc ecx
cmp ecx, r8d
jb 0x14004dbb0
jmp 0x14004dbd9
lea rax, [rdx + rdx*2]
mov ebp, edi
mov r13d, dword [rbx + rax*8 + 8]
mov eax, dword [rbx + rax*8 + 0xc]
mov dword [rsp + 0x74], eax
test rbx, rbx
je 0x14004dbe7
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test ebp, ebp
jne 0x14004dca1
lea edx, [rbp + 0x68]
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x14004dd3d
mov rax, qword [rsp + 0x60]
lea ecx, [rbp + 0x10]
mov qword [rsp + 0x60], rbx
mov qword [rax], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 8], rax
test rax, rax
je 0x14004dd3d
mov r8d, r15d
lea rdx, [0x140147000]
mov rcx, rax
call fcn.140050090
mov eax, dword [r14]
mov dword [rbx + 0x10], eax
cmp word [r14 + 4], 2
jne 0x14004dc9d
lea edx, [rbp + 0x10]
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14004dd3d
movups xmm0, xmmword [r14 + 4]
lea edx, [rbp + 0x10]
lea ecx, [rbp + 1]
movups xmmword [rax], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x14004dd3d
mov ecx, 2
mov word [rax], cx
mov rcx, qword [rbx + 0x20]
mov eax, dword [rsp + 0x74]
mov dword [rcx + 4], eax
mov dword [rbx + 0x60], r13d
jmp 0x14004dca1
mov dword [rbx + 0x60], r15d
mov rax, qword [rsp + 0xe8]
inc r15d
inc r12
add r14, 0x4c
cmp r12, rax
jl 0x14004db30
mov r12, qword [rsp + 0xd0]
test r12, r12
je 0x14004dcd7
mov rax, qword [rsp + 0x50]
mov qword [r12], rax
mov qword [rsp + 0x50], rdi
mov rcx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x90]
test rcx, rcx
je 0x14004dcee
call fcn.14004d900
mov r15, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xa0]
test r15, r15
je 0x14004dd1e
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp rbp, 0xffffffffffffffff
je 0x14004dd2d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
add rsp, 0xa8
pop r15
pop r12
pop rdi
pop rbp
ret
mov edi, 0x2747
jmp 0x14004dcd7