Function at 0x411200
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x44
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
push ebx
push ebp
mov bp, word [esp + 0x50]
push esi
push edi
mov ebx, ecx
movzx ecx, word [ebx]
push 0x11
push 2
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411250
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x411357
call edi
test eax, eax
jne 0x4114c7
test bp, bp
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x411274
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0xffff
push esi
mov dword [esp + 0x24], 1
call edi
movzx eax, word [ebx]
cmp ax, 2
jne 0x41136f
mov ebx, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
mov word [esp + 0x2c], 2
mov word [esp + 0x2e], bp
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_bind]
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x13
push 0
push esi
mov dword [esp + 0x24], 1
call edi
test bp, bp
je 0x411313
mov edx, dword [0x42dfa8]
push 8
lea eax, [esp + 0x1c]
push eax
push 0xc
push 0
push esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
call edi
push 4
lea ecx, [esp + 0x28]
push ecx
push 9
push 0
push esi
mov dword [esp + 0x38], ebx
call edi
push 4
lea edx, [esp + 0x14]
push edx
push 0xb
push 0
push esi
mov dword [esp + 0x24], 1
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
mov ebx, 0xff
push esi
mov dword [esp + 0x24], ebx
call edi
push 4
lea ecx, [esp + 0x14]
push ecx
push 0xa
push 0
push esi
mov dword [esp + 0x24], ebx
call edi
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00423888
add esp, 0x44
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffe5d4
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00423888
add esp, 0x44
ret
cmp ax, 0x17
jne 0x4114b4
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 8]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
push 0x1c
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x18]
push ecx
push esi
mov word [esp + 0x40], 0x17
mov word [esp + 0x42], bp
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
call dword [sym.imp.WS2_32.dll_bind]
push 4
lea edx, [esp + 0x14]
push edx
push 0x13
push 0x29
push esi
mov dword [esp + 0x24], 1
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 0x1b
push 0x29
push esi
mov dword [esp + 0x24], 1
call edi
test bp, bp
je 0x411470
mov eax, dword [0x42dfb4]
mov ecx, dword [0x42dfac]
mov edx, dword [0x42dfb0]
push 0x14
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 0xc
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x42dfb8]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x18]
push 0x29
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call edi
mov ecx, dword [ebx + 0x18]
push 4
lea edx, [esp + 0x14]
push edx
push 9
push 0x29
push esi
mov dword [esp + 0x24], ecx
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 0xb
push 0x29
push esi
mov dword [esp + 0x24], 1
call edi
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0x29
mov ebx, 0xff
push esi
mov dword [esp + 0x24], ebx
call edi
push 4
lea edx, [esp + 0x14]
push edx
push 0xa
push 0x29
push esi
mov dword [esp + 0x24], ebx
call edi
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00423888
add esp, 0x44
ret
cmp esi, 0xffffffff
mov edi, 0xffffe5b1
je 0x4114c5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423888
add esp, 0x44
ret