Function at 0x1401466b0
Capabilities:
Create tcp socket
Create udp socket
Extract resource via kernel32 functions
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1188
call fcn.1401d4c90
sub rsp, rax
mov qword [rsp + 0x1150], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x1178], rax
mov edx, 0xa
lea rcx, [rsp + 0x58]
call fcn.14001bc90
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x90], 0
cmp qword [rsp + 0x98], 0
je 0x140146b1c
movsxd rcx, dword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x140146b1c
movsxd rcx, dword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
mov dword [rsp + 0xf4], eax
mov eax, dword [rsp + 0x90]
add eax, 1
mov dword [rsp + 0x90], eax
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xcc], 1
mov dword [rsp + 0xf0], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xcc]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xf0], eax
mov dword [rsp + 0x100], 0
mov dword [rsp + 0xec], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xec]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x100]
mov edx, 0x9800000c
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0xf0], eax
mov dword [rsp + 0xe8], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xe8]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.1400a8080
mov r11d, 2
mov word [rsp + 0xa8], r11w
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0xac], eax
mov cx, 0x44
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xaa], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0xf0], eax
call fcn.14000edf0
lea r8, str.dhcp
lea rdx, str.dhcp.bin
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
jne 0x14014692a
mov dword [rsp + 0x1118], 0
lea rcx, [rsp + 0x58]
call fcn.14001bef0
mov eax, dword [rsp + 0x1118]
jmp 0x140146c8f
call fcn.14000edf0
mov rdx, qword [rsp + 0xf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0xc8], eax
call fcn.14000edf0
mov rdx, qword [rsp + 0xf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0xd8], rax
mov ecx, dword [rsp + 0xc8]
call fcn.140071ab0
mov qword [rsp + 0x1120], rax
mov rax, qword [rsp + 0x1120]
mov qword [rsp + 0xc0], rax
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xc0]
call fcn.1400a8d30
mov dword [rsp + 0xd0], 6
mov r8, qword [rsp + 0xc0]
add r8, 0x1c
lea r9, [rsp + 0xd0]
mov edx, dword [rsp + 0xf4]
mov ecx, dword [rsp + 0xf4]
call sub.IPHLPAPI.DLL_SendARP
mov dword [rsp + 0xb8], eax
lea rcx, str.255.255.255.255
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0xac], eax
mov cx, 0x43
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xaa], ax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1128], rax
mov rcx, qword [rsp + 0x1128]
call fcn.140071aa8
mov edx, 2
mov rcx, qword [rsp + 0xe0]
call fcn.1400d7520
test eax, eax
je 0x140146aeb
mov dword [rsp + 0x1110], 0x10
lea rax, [rsp + 0x1110]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [rsp + 0xac]
call fcn.1400d73c0
test eax, eax
je 0x140146acd
jmp 0x140146a61
mov r8d, dword [rsp + 0xac]
mov edx, dword [rsp + 0xac]
lea rcx, [rsp + 0x58]
call fcn.14001bd10
jmp 0x140146a61
mov edx, 2
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_shutdown]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140146710
lea rcx, [rsp + 0x58]
call fcn.1400521b0
test rax, rax
jne 0x140146b4c
mov dword [rsp + 0x1130], 1
lea rcx, [rsp + 0x58]
call fcn.14001bef0
mov eax, dword [rsp + 0x1130]
jmp 0x140146c8f
lea rcx, [rsp + 0x58]
call fcn.14001e850
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140146c0f
lea r9, [rsp + 0x1114]
lea r8, [rsp + 0x1114]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001bd40
mov r11d, dword [rsp + 0x1114]
mov dword [rsp + 0xac], r11d
mov ecx, dword [rsp + 0xac]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x1138]
call fcn.140010530
mov qword [rsp + 0x1158], rax
mov rax, qword [rsp + 0x1158]
mov qword [rsp + 0x1160], rax
mov rcx, qword [rsp + 0x1160]
call fcn.1400105c0
mov rdx, rax
mov rcx, qword [rsp + 0x1198]
call fcn.140006000
nop
lea rcx, [rsp + 0x1138]
call fcn.140002e70
lea rdx, [0x140234938]
mov rcx, qword [rsp + 0x1198]
call fcn.140006000
jmp 0x140146b5b
mov rcx, qword [rsp + 0x1198]
call fcn.140001a40
mov r8d, eax
sub r8d, 2
lea rdx, [rsp + 0x1140]
mov rcx, qword [rsp + 0x1198]
call fcn.140006b20
mov qword [rsp + 0x1168], rax
mov rax, qword [rsp + 0x1168]
mov qword [rsp + 0x1170], rax
mov rdx, qword [rsp + 0x1170]
mov rcx, qword [rsp + 0x1198]
call fcn.140002d80
nop
lea rcx, [rsp + 0x1140]
call fcn.140001490
mov dword [rsp + 0x1148], 0
lea rcx, [rsp + 0x58]
call fcn.14001bef0
mov eax, dword [rsp + 0x1148]
mov rcx, qword [rsp + 0x1178]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x1188
ret