Function at 0x422f60
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 0x11
push 2
xor ebx, ebx
lea eax, [ebp - 8]
push 2
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x422fa0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x423010
call esi
cmp eax, ebx
jne 0x42316d
push edi
mov edi, 0x4c0
push edi
push ebx
mov dword [ebp - 4], ebx
call fcn.0043b23d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x423006
mov ebx, dword [sym.imp.WS2_32.dll_WSAIoctl]
nop
mov edx, dword [ebp - 0x18]
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push edi
push esi
push 0
push 0
push 0x4004747f
push edx
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
je 0x42301d
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x64
jge 0x42317c
add edi, 0x4c0
push edi
push esi
call fcn.0043b23d
mov esi, eax
add esp, 8
test esi, esi
jne 0x422fc0
mov esi, 0x2747
jmp 0x42314b
pop esi
mov eax, 0xffffe5d4
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x1c]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
mov dword [ebp - 4], ecx
test ecx, ecx
jle 0x42312e
mov ebx, 1
lea edi, [esi + 4]
cmp word [edi], 2
jne 0x42311e
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push edi
call fcn.00421610
test eax, eax
jne 0x42311e
push 0x38
push 1
call fcn.0043b80f
mov esi, eax
add esp, 8
test esi, esi
je 0x423175
mov edx, dword [ebp - 0xc]
push 0x10
mov dword [edx], esi
mov dword [ebp - 0xc], esi
call fcn.0043aa67
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x423175
push ebx
push 0x44f044
push eax
call fcn.0043b78b
mov eax, dword [edi - 4]
add esp, 0xc
mov dword [esi + 8], eax
cmp word [edi], 2
jne 0x42311b
push 0x10
push 1
call fcn.0043b80f
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x423175
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
push 1
mov dword [eax + 0xc], edx
call fcn.0043b80f
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
je 0x423175
mov ecx, 2
mov word [eax], cx
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [esi + 0x34], ecx
jmp 0x42311e
mov dword [esi + 0x34], ebx
inc ebx
lea edx, [ebx - 1]
add edi, 0x4c
cmp edx, dword [ebp - 4]
jl 0x423043
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x42313f
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x42314b
call fcn.004214f0
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x42315c
push eax
call fcn.0043aafb
add esp, 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x42316b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, 0x2747
jmp 0x42313f
mov esi, 0x2741
jmp 0x42314b