Function at 0x14014f7c0
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.1401da720
sub rsp, rax
mov qword [rsp + 0x1150], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x1178], rax
mov edx, 0xa
lea rcx, [rsp + 0x58]
call fcn.140019fb0
nop
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x90], 0
cmp qword [rsp + 0x98], 0
je 0x14014fc2c
movsxd rcx, dword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x14014fc2c
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.WSOCK32.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.WSOCK32.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.WSOCK32.dll_setsockopt]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.1400a87c0
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.WSOCK32.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.WSOCK32.dll_bind]
mov dword [rsp + 0xf0], eax
call fcn.14000cf20
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 0x14014fa3a
mov dword [rsp + 0x1118], 0
lea rcx, [rsp + 0x58]
call fcn.14001a250
mov eax, dword [rsp + 0x1118]
jmp 0x14014fd9f
call fcn.14000cf20
mov rdx, qword [rsp + 0xf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0xc8], eax
call fcn.14000cf20
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.140072250
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.1400a9470
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.WSOCK32.dll_inet_addr]
mov dword [rsp + 0xac], eax
mov cx, 0x43
call qword [sym.imp.WSOCK32.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.WSOCK32.dll_sendto]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1128], rax
mov rcx, qword [rsp + 0x1128]
call fcn.140072248
mov edx, 2
mov rcx, qword [rsp + 0xe0]
call fcn.1400d88c0
test eax, eax
je 0x14014fbfb
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.WSOCK32.dll_recvfrom]
mov ecx, dword [rsp + 0xac]
call fcn.1400d8760
test eax, eax
je 0x14014fbdd
jmp 0x14014fb71
mov r8d, dword [rsp + 0xac]
mov edx, dword [rsp + 0xac]
lea rcx, [rsp + 0x58]
call fcn.14001a040
jmp 0x14014fb71
mov edx, 2
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WSOCK32.dll_shutdown]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x14014f820
lea rcx, [rsp + 0x58]
call fcn.14001a030
test rax, rax
jne 0x14014fc5c
mov dword [rsp + 0x1130], 1
lea rcx, [rsp + 0x58]
call fcn.14001a250
mov eax, dword [rsp + 0x1130]
jmp 0x14014fd9f
lea rcx, [rsp + 0x58]
call fcn.14001a070
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14014fd1f
lea r9, [rsp + 0x1114]
lea r8, [rsp + 0x1114]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14001a0a0
mov r11d, dword [rsp + 0x1114]
mov dword [rsp + 0xac], r11d
mov ecx, dword [rsp + 0xac]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x1138]
call fcn.14000e700
mov qword [rsp + 0x1158], rax
mov rax, qword [rsp + 0x1158]
mov qword [rsp + 0x1160], rax
mov rcx, qword [rsp + 0x1160]
call fcn.1400118c0
mov rdx, rax
mov rcx, qword [rsp + 0x1198]
call fcn.1400060d0
nop
lea rcx, [rsp + 0x1138]
call fcn.140002ea0
lea rdx, [0x14023b1c8]
mov rcx, qword [rsp + 0x1198]
call fcn.1400060d0
jmp 0x14014fc6b
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.140002db0
nop
lea rcx, [rsp + 0x1140]
call fcn.140001490
mov dword [rsp + 0x1148], 0
lea rcx, [rsp + 0x58]
call fcn.14001a250
mov eax, dword [rsp + 0x1148]
mov rcx, qword [rsp + 0x1178]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x1188
ret