Function at 0x6407d6a0
Capabilities:
Create udp socket
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
mov eax, dword [0x640f0ebc]
xor eax, esp
mov dword [esp + 0x44], eax
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, ecx
cmp ebp, 2
jne 0x6407d6d9
push 7
push 0xa
call fcn.6407cae0
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.640ae828
add esp, 0x48
ret 8
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
cmp eax, 1
je 0x6407d6ee
cmp eax, 2
mov eax, 2
jne 0x6407d6f3
mov eax, 0x17
push ebx
push edi
push 0x81
push 0
lea edi, [ebp - 1]
mov dword [esp + 0x18], eax
neg edi
push 0
sbb edi, edi
push 0
add edi, 2
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6407d777
mov ebx, dword [0x640b0b34]
lea eax, [esp + 0x24]
push eax
call dword [0x640b0b2c]
add esp, 4
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x6407d8dd
push ebx
push eax
call dword [0x640b0b30]
add esp, 8
test eax, eax
jns 0x6407d8dd
push 1
push 0
push 0
push 0
push edi
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6407d8dd
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edi, dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp ebp, 1
jne 0x6407d7b9
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push 0
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push 0x9800000c
push ebx
call edi
cmp eax, 0xffffffff
jne 0x6407d7b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xf689d7c8
push ecx
push 4
lea eax, [esi + 0x78]
mov dword [esp + 0x48], 0x436b6f1f
push eax
push 0x10
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], 0x4fe5538a
push eax
push 0xc8000006
push ebx
mov dword [esp + 0x64], 0x22c351e3
call edi
cmp eax, 0xffffffff
jne 0x6407d803
mov dword [esi + 0x78], 0
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xa441e712
push ecx
push 4
lea eax, [esi + 0x74]
mov dword [esp + 0x58], 0x43ca754f
push eax
push 0x10
lea eax, [esp + 0x5c]
mov dword [esp + 0x64], 0xee0da784
push eax
push 0xc8000006
push ebx
mov dword [esp + 0x74], 0x6d60cf44
call edi
cmp eax, 0xffffffff
jne 0x6407d84d
mov dword [esi + 0x74], 0
mov dword [esi + 0x64], ebx
cmp ebx, 0xffffffff
je 0x6407d861
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebp
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x6407d8b3
mov eax, dword [esp + 0x14]
push 0
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x30]
mov dword [esp + 0x20], 0
push eax
push 4
lea eax, [esp + 0x34]
push eax
push 0x8004667e
push dword [esi + 0x64]
call edi
cmp eax, 0xffffffff
jne 0x6407d915
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
push 0xa
mov ecx, esi
call fcn.6407cae0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x50]
pop edi
pop ebx
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.640ae828
add esp, 0x48
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8da
cmp eax, 0x21
ja case.0x6407d8f4.10023
movzx eax, byte [eax + 0x6407d938]
jmp dword [eax*4 + 0x6407d92c]
push 7
push 0xa
mov ecx, esi
call fcn.6407cae0
jmp case.0x6407d8f4.10023
push 5
push 4
mov ecx, esi
call fcn.6407cae0
jmp case.0x6407d8f4.10023
mov ecx, dword [esp + 0x54]
mov al, 1
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.640ae828
add esp, 0x48
ret 8