Function at 0x4103a8
Capabilities:
Create thread
Create udp socket
Send data
Send data on socket
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x410595
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x30], eax
jne 0x4103ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi]
push 0x7e9
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x410595
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00415790
mov eax, dword [esi + 8]
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 8], 0x42034c
je 0x41040e
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jne 0x41041d
xor eax, eax
jmp 0x410450
push dword [ebp + 8]
call edi
lea eax, [eax + eax + 2]
mov dword [ebp - 4], eax
add eax, 3
and al, 0xfc
call fcn.004162c0
mov eax, esp
push ebx
push ebx
mov dword [ebp - 8], eax
push dword [ebp - 4]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x2c], eax
mov ax, word [esi + 0x14]
push eax
mov word [ebp - 0x30], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x30]
push 0x10
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4103d2
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00415790
mov eax, dword [esi + 0x1c]
add esp, 0xc
cmp eax, ebx
mov dword [ebp + 8], 0x42034c
je 0x4104a7
mov dword [ebp + 8], eax
cmp dword [ebp + 8], ebx
jne 0x4104b0
xor edi, edi
jmp 0x4104dd
push dword [ebp + 8]
call edi
lea eax, [eax + eax + 2]
mov dword [ebp - 4], eax
add eax, 3
and al, 0xfc
call fcn.004162c0
mov edi, esp
push ebx
push ebx
push dword [ebp - 4]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov ax, word [esi + 0x28]
push eax
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push ebx
mov edi, dword [sym.imp.WS2_32.dll_sendto]
push dword [esi + 0x38]
mov dword [ebp + 8], ebx
push dword [esi + 0x34]
push dword [esi + 0x30]
call edi
cmp eax, 0xffffffff
je 0x41053e
add dword [ebp + 8], eax
mov eax, dword [esi + 0x38]
cmp dword [ebp + 8], eax
jge 0x41053e
sub eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push 0x10
push ecx
push ebx
push eax
mov eax, dword [esi + 0x34]
add eax, dword [ebp + 8]
push eax
push dword [esi + 0x30]
jmp 0x410515
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x38]
jge 0x410559
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi]
push 0x7ea
jmp 0x4103e0
push ebx
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push dword [esi]
push 0x7ec
push dword [esi + 0x2c]
call edi
cmp byte [esi + 0x4c], bl
je 0x4105e3
push esi
push ebx
push 0x410187
call fcn.004159d2
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esi + 0x50], eax
jne 0x410599
push eax
push dword [esi]
push 0x7ee
push dword [esi + 0x2c]
call edi
xor eax, eax
jmp 0x4105e6
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jne 0x4105af
or eax, 0xffffffff
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4105cf
push 0xffffffffffffffff
push dword [esi]
push 0x7eb
push dword [esi + 0x2c]
call edi
mov eax, dword [esi + 0x50]
cmp eax, 0xffffffff
je 0x4105e3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or dword [esi + 0x50], 0xffffffff
push 1
pop eax
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
leave
ret