Function at 0x6407ccf0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x640fe3b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp eax, 2
jne 0x6407cd27
push 7
push 0xa
call fcn.6407c150
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
cmp ecx, 1
je 0x6407cd3b
cmp ecx, 2
mov ecx, 2
jne 0x6407cd40
mov ecx, 0x17
push ebx
push edi
push 0x81
lea edi, [eax - 1]
mov dword [ebp - 0x28], ecx
push 0
neg edi
push 0
sbb edi, edi
push 0
add edi, 2
push edi
push ecx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6407cdc1
mov ebx, dword [sym.imp.Qt5CoreKso.dll_class_kso_qt::QOperatingSystemVersion_const_kso_qt::QOperatingSystemVersion::Windows8]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QOperatingSystemVersion___cdecl_kso_qt::QOperatingSystemVersion::current_void_]
add esp, 4
mov ecx, dword [eax]
cmp ecx, dword [ebx]
jne 0x6407cf28
push ebx
push eax
call dword [sym.imp.Qt5CoreKso.dll_private:_static_int___cdecl_kso_qt::QOperatingSystemVersion::compare_class_kso_qt::QOperatingSystemVersion_const___class_kso_qt::QOperatingSystemVersion_const__]
add esp, 8
test eax, eax
jns 0x6407cf28
push 1
push 0
push 0
push 0
push edi
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6407cf28
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edi, dword [ebp + 8]
mov eax, dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp edi, 1
jne 0x6407ce06
push 0
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push 0
push 0
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push ecx
push 0x9800000c
push ebx
call eax
cmp eax, 0xffffffff
jne 0x6407ce01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
lea edx, [ebp - 0x30]
mov dword [ebp - 0x14], 0xf689d7c8
push edx
push 4
lea ecx, [esi + 0x88]
mov dword [ebp - 0x10], 0x436b6f1f
push ecx
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x4fe5538a
push ecx
push 0xc8000006
push ebx
mov dword [ebp - 8], 0x22c351e3
call eax
cmp eax, 0xffffffff
jne 0x6407ce50
mov dword [esi + 0x88], 0
push 0
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], 0xa441e712
push ecx
push 4
lea eax, [esi + 0x84]
mov dword [ebp - 0x20], 0x43ca754f
push eax
push 0x10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0xee0da784
push eax
push 0xc8000006
push ebx
mov dword [ebp - 0x18], 0x6d60cf44
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x6407ce9e
mov dword [esi + 0x84], 0
mov dword [esi + 0x74], ebx
cmp ebx, 0xffffffff
je 0x6407ceb1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], edi
mov ecx, dword [esi + 4]
mov dword [ebp - 0x2c], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
test al, al
je 0x6407cf00
mov eax, dword [ebp - 0x2c]
push 0
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], 0
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push 0x8004667e
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x6407cf60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
push 0xa
mov ecx, esi
call fcn.6407c150
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x50]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8da
cmp eax, 0x21
ja case.0x6407cf3f.10023
movzx eax, byte [eax + 0x6407cf84]
jmp dword [eax*4 + 0x6407cf78]
push 7
push 0xa
mov ecx, esi
call fcn.6407c150
jmp case.0x6407cf3f.10023
push 5
push 4
mov ecx, esi
call fcn.6407c150
jmp case.0x6407cf3f.10023
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.640ad545
mov esp, ebp
pop ebp
ret 8