Function at 0x413a30
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x34
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebp
push esi
push 0x11
push 2
xor ebp, ebp
lea ecx, [esp + 0x10]
push 2
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x413a85
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x413af1
call esi
cmp eax, ebp
jne 0x413c78
push ebx
push edi
mov edi, 0x4c0
push edi
push ebp
call fcn.0042442b
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x413ae7
mov ebx, dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
push edi
push esi
push 0
push 0
push 0x4004747f
push eax
mov dword [esp + 0x3c], esi
call ebx
test eax, eax
je 0x413b07
add ebp, 1
cmp ebp, 0x64
jge 0x413c90
add edi, 0x4c0
push edi
push esi
call fcn.0042442b
mov esi, eax
add esp, 8
test esi, esi
jne 0x413aa2
mov esi, 0x2747
jmp 0x413c53
pop esi
mov eax, 0xffffe5d4
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00423888
add esp, 0x34
ret
mov ecx, dword [esp + 0x24]
mov eax, 0xaf286bcb
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 6
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x2c], ecx
jle 0x413c2e
mov ebx, 1
lea edi, [esi + 4]
cmp word [edi], 2
jne 0x413c1b
lea ecx, [esp + 0x30]
push ecx
xor eax, eax
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00411c10
add esp, 0xc
test eax, eax
jne 0x413c1b
push 0x24
push 1
call fcn.004248d0
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x413c89
mov eax, dword [esp + 0x20]
push 0x10
mov dword [eax], esi
mov dword [esp + 0x24], esi
call fcn.004236b5
add esp, 4
cmp eax, ebp
mov dword [esi + 4], eax
je 0x413c89
push ebx
push 0x42fb44
push eax
call fcn.0042490f
mov ecx, dword [edi - 4]
add esp, 0xc
mov dword [esi + 8], ecx
cmp word [edi], 2
jne 0x413c18
push 0x10
push 1
call fcn.004248d0
add esp, 8
cmp eax, ebp
mov dword [esi + 0xc], eax
je 0x413c89
mov edx, dword [edi]
mov dword [eax], edx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0xc]
push 0x10
push 1
mov dword [eax + 0xc], ecx
call fcn.004248d0
add esp, 8
cmp eax, ebp
mov dword [esi + 0x10], eax
je 0x413c89
mov ecx, dword [esp + 0x1c]
mov word [eax], 2
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x34]
mov dword [edx + 4], eax
mov dword [esi + 0x20], ecx
jmp 0x413c1b
mov dword [esi + 0x20], ebx
add ebx, 1
lea edx, [ebx - 1]
add edi, 0x4c
cmp edx, dword [esp + 0x2c]
jl 0x413b31
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x413c40
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x10], ebp
xor esi, esi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x413c53
push eax
call fcn.00411ae0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
pop edi
pop ebx
je 0x413c66
push eax
call fcn.004237fa
add esp, 4
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x413c76
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
xor ecx, esp
call fcn.00423888
add esp, 0x34
ret
mov esi, 0x2747
jmp 0x413c42
mov esi, 0x2741
jmp 0x413c53