Function at 0x406a10
Capabilities:
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x4681d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x28], eax
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x406b5d
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a6b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x4c]
push ecx
lea edx, [esp + 0x1c]
push 0x46eef0
push edx
mov dword [esp + 0x50], 0
call fcn.00401f50
add esp, 0xc
mov dword [esp + 0x10], vtable.ATL::CSocketAddr.0
mov dword [esp + 0x14], 0
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 1
push ebp
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 1
call fcn.00406140
push 0
test eax, eax
je 0x406ad4
call fcn.00406240
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
mov eax, dword [edi + 4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x406af6
push 0
call fcn.00406240
mov ecx, dword [edi + 0x10]
mov edi, dword [edi + 0x18]
push ecx
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x406b11
push 0
call fcn.00406240
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.ATL::CSocketAddr.0
test eax, eax
je 0x406b30
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406c35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406c35
mov eax, dword [esp + 0x54]
sub eax, 2
je 0x406c07
sub eax, 0x15
jne 0x406c35
mov edx, dword [esp + 0x4c]
mov ecx, 0x17
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x20], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x47ae64]
mov edx, dword [0x47ae68]
mov word [esp + 0x1e], ax
mov eax, dword [0x47ae60]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x50]
push 0
mov dword [esp + 0x28], eax
mov eax, dword [0x47ae6c]
push ecx
push 0x17
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x406bed
push 0
call fcn.00406240
push 0x1c
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x406c35
push 0
call fcn.00406240
mov eax, dword [esp + 0x50]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x406c25
push 0
call fcn.00406240
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x4c]
push ecx
push edx
mov ecx, esi
call fcn.004068f0
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004517f0
add esp, 0x38
ret 0xc