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

Disassembly:
sub esp, 0x40
mov eax, dword [0x436090]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x48], eax
movzx eax, word [ebx]
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411430
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x411539
call edi
test eax, eax
jne 0x41168e
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
mov bp, word [esp + 0x54]
test bp, bp
je 0x41145a
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0xffff
push esi
mov dword [esp + 0x24], 1
call edi
mov ax, word [ebx]
cmp ax, 2
jne 0x41154e
mov ebx, dword [ebx + 4]
xor edx, edx
mov dword [esp + 0x1c], edx
mov word [esp + 0x1c], ax
push 0x10
mov dword [esp + 0x24], edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], edx
push esi
mov dword [esp + 0x34], edx
mov word [esp + 0x2a], bp
mov dword [esp + 0x2c], 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 0x4114f7
mov edx, dword [0x42df08]
push 8
lea eax, [esp + 0x18]
push eax
push 0xc
push 0
push esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
call edi
push 4
lea ecx, [esp + 0x24]
push ecx
push 9
push 0
push esi
mov dword [esp + 0x34], 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 edx, dword [esp + 0x58]
pop ebp
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
call fcn.0042373b
add esp, 0x40
ret
pop edi
pop esi
mov eax, 0xffffe5d4
pop ebx
mov ecx, dword [esp + 0x3c]
call fcn.0042373b
add esp, 0x40
ret
cmp ax, 0x17
jne 0x41167a
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov word [esp + 0x30], ax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
lea eax, [ebx + 8]
mov ecx, dword [eax]
mov dword [esp + 0x48], edx
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
push 0x1c
lea ecx, [esp + 0x34]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x18]
push ecx
push esi
mov word [esp + 0x3e], bp
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 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
test bp, bp
je 0x411638
mov edx, dword [0x42df14]
mov eax, dword [0x42df0c]
mov ecx, dword [0x42df10]
push 0x14
mov dword [esp + 0x28], edx
lea edx, [esp + 0x20]
push edx
push 0xc
mov dword [esp + 0x28], eax
mov eax, dword [0x42df18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x18]
push 0x29
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call edi
mov eax, dword [ebx + 0x18]
push 4
lea ecx, [esp + 0x14]
push ecx
push 9
push 0x29
push esi
mov dword [esp + 0x24], eax
call edi
push 4
lea edx, [esp + 0x14]
push edx
push 0xb
push 0x29
push esi
mov dword [esp + 0x24], 1
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0x29
mov ebx, 0xff
push esi
mov dword [esp + 0x24], ebx
call edi
push 4
lea ecx, [esp + 0x14]
push ecx
push 0xa
push 0x29
push esi
mov dword [esp + 0x24], ebx
call edi
mov edx, dword [esp + 0x58]
pop ebp
pop edi
mov dword [edx], esi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
call fcn.0042373b
add esp, 0x40
ret
cmp esi, 0xffffffff
mov edi, 0xffffe5b1
je 0x41168b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
call fcn.0042373b
add esp, 0x40
ret