Function at 0x414a20
Capabilities:
Create thread
Create udp socket

Disassembly:
sub esp, 0x40
mov eax, dword [0x4a0538]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push edi
mov edi, dword [esp + 0x4c]
call edx
test edi, edi
je 0x414c51
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414c51
push 0
push 2
push 2
mov dword [esi + 0x448], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x44c], eax
cmp eax, 0xffffffff
jne 0x414a82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error___WSASocket__d_.
jmp 0x414c5d
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_WSACreateEvent]
lea edi, [esi + 0x450]
call ebp
mov dword [edi], eax
call ebp
mov dword [esi + 0x464], eax
call ebp
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x478], eax
xor eax, eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
mov eax, 2
push ecx
mov word [esp + 0x3c], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x3e], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x44c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
pop ebp
cmp eax, 0xffffffff
jne 0x414b90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x414b7f
push 0
push 0x190
push 1
push edi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0x102
jne 0x414b30
push str.Error___connect_timeout_
push esi
call fcn.00413e40
add esp, 8
jmp 0x414b97
mov edx, dword [edi]
xor eax, eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x44c]
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414b90
push eax
push str.Error___connect__d_
push esi
call fcn.00413e40
add esp, 0xc
jmp 0x414b97
mov byte [esi + 0x445], 1
mov eax, dword [esi + 0x440]
cmp eax, 0xffffffff
je 0x414bc5
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x440], 0xffffffff
cmp byte [esi + 0x445], 0
je 0x414c26
mov edx, dword [edi]
push edx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov eax, dword [edi]
mov ecx, dword [esi + 0x44c]
push 0x21
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0
push 0
push esi
push 0x414790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c0], eax
cmp eax, 0xffffffff
jne 0x414c1d
push str.CreateThread___Failed__
push esi
call fcn.00413e40
add esp, 8
mov byte [esi + 0x445], 0
cmp byte [esi + 0x445], 0
jne 0x414c2f
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x3c], eax
mov al, byte [esi + 0x445]
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004637ae
add esp, 0x40
ret 0xc
mov ecx, dword [esi + 0x448]
push ecx
push str.It_is_invalid_window_handle_0x_08x_.
push esi
call fcn.00413e40
mov ecx, dword [esp + 0x50]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.004637ae
add esp, 0x40
ret 0xc