Function at 0x405c40
Capabilities:
Create thread
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4886b2
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
call eax
test al, al
jne 0x405fe7
mov ax, word [ebp + 8]
test ax, ax
je 0x405fe7
cmp dword [ebx + 0x816], 0xffffffff
jne 0x406008
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ffc
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x10]
push 4
push eax
push 4
push 0xffff
push esi
mov dword [ebp - 0x10], 1
call edi
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x40000
push eax
push 0x1002
push 0xffff
push esi
call edi
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4000
push eax
push 0x1001
push 0xffff
push esi
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x405ffc
push 4
lea eax, [ebp - 0x10]
push eax
push 0x20
push 0xffff
push esi
call edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
mov eax, 2
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x405d4c
cmp byte [eax], 0
je 0x405d4c
push eax
jmp 0x405d89
mov ecx, str.0.0.0.0
mov eax, 0x5bd349
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405d76
test dl, dl
je 0x405d72
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405d76
add eax, 2
add ecx, 2
test dl, dl
jne 0x405d56
xor eax, eax
jmp 0x405d7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405d84
mov dword [ebp - 0x24], eax
jmp 0x405d93
push 0x5bd349
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
mov dword [ebp - 0x24], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x405ffc
lea eax, [ebp - 0x18]
mov dword [ebx + 0x816], esi
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x405ddf
push dword [ebp - 0x3a]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
test ax, ax
je 0x405ddf
mov ecx, eax
mov dword [ebp + 0xc], ecx
mov ax, word [ebp + 8]
cmp word [ebx + 7], 0
jne 0x405f0a
cmp word [ebx + 9], ax
jbe 0x405df8
mov word [ebx + 9], ax
movzx edi, ax
xor ecx, ecx
mov word [ebx + 7], ax
mov edx, 0x7f2
mov eax, edi
mov dword [ebp - 0x2c], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004610f4
add esp, 4
mov dword [ebp + 8], eax
push 0x4060f0
push 0x406080
push edi
lea esi, [eax + 4]
mov dword [ebp - 4], 0
push 0x7f2
push esi
mov dword [eax], edi
call fcn.00461263
mov dword [ebp - 4], 0xffffffff
xor eax, eax
xor edx, edx
mov dword [ebx + 0x334], esi
cmp ax, word [ebx + 7]
jae 0x405ecd
xor edi, edi
nop word [eax + eax]
mov eax, dword [ebx + 0x334]
mov byte [edi + eax], 0
mov esi, dword [ebx + 0x334]
movzx eax, word [ebx + 0x832]
add esi, edi
movzx ecx, word [ebx + 0x834]
movsd xmm0, qword [ebx + 0x82a]
mov dword [esi + 0x677], eax
add eax, ecx
add eax, eax
movsd qword [esi + 0x66f], xmm0
mov dword [esi + 0x67b], ecx
cmp dword [esi + 0x2da], eax
jae 0x405ebe
mov dword [esi + 0x2da], eax
movzx eax, word [ebx + 7]
inc edx
add edi, 0x7f2
cmp edx, eax
jb 0x405e70
mov eax, dword [ebx + 0x340]
test eax, eax
je 0x405f0a
cmp eax, 0x200
jbe 0x405f00
push dword [ebx + 0x338]
call fcn.004610fd
add esp, 4
mov dword [ebx + 0x340], 0
mov dword [ebx + 0x338], 0
mov dword [ebx + 0x33c], 0
cmp byte [ebx + 4], 0
je 0x40603a
push 0x400
lea eax, [ebx + 0x3d1]
push 0
push eax
call fcn.004633e0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebx + 0x7e5], 0
mov ecx, ebx
mov dword [ebx + 0x7e1], 0
mov dword [ebx + 0x7dd], 0
mov dword [ebx + 0x7d9], 0
mov byte [ebx + 0x35c], 0
mov byte [ebx + 4], 0
mov dword [ebx + 0x812], eax
call fcn.0040a8b0
lea eax, [ebp - 0xe0]
push eax
call fcn.004192d0
mov eax, dword [ebp + 0xc]
mov word [ebx + 0x231], ax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x405f8f
cmp byte [eax], 0
jne 0x405f95
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, 0x22d
mov ecx, ebx
mov dword [edx + ecx], eax
cmp byte [ebx + 5], 0
jne 0x40603a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push ebx
push 0x40d310
push 0x200000
push 0
call fcn.00468af5
add esp, 0x18
mov dword [ebx + 0x369], eax
test eax, eax
jne 0x406013
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
call dword [eax + 0x24]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebx + 0x816], 0xffffffff
jmp 0x405fe7
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
jmp 0x405de3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 5], 0
mov dword [ebx + 0x369], 0
jne 0x40603a
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call esi
cmp byte [ebx + 5], 0
je 0x406030
xor esi, esi
cmp dword [ebx + 0x3b1], esi
jbe 0x40605c
mov eax, dword [ebx + 0x3ad]
push ebx
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
call dword [eax + 8]
inc esi
cmp esi, dword [ebx + 0x3b1]
jb 0x406044
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10