Function at 0x404bd0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x57b6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], ecx
push str.DeHJfsvDa::Connect
push 0x530fdc
call fcn.00405720
add esp, 8
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
mov edx, dword [ebp - 0x50]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x14], eax
push 0xa
push 0
mov edx, dword [ebp - 0x50]
add edx, 0x20
push edx
call fcn.0050b230
add esp, 0xc
push 8
mov eax, dword [ebp - 0x50]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 0x20
push ecx
call fcn.0050a550
add esp, 0xc
mov edx, dword [ebp - 0x50]
mov byte [edx + 0x28], 0xca
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x29], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0x64], 0xffffffff
jne 0x404c78
xor al, al
jmp 0x404f1d
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
add edx, 1
push edx
call fcn.0040c087
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x28]
mov byte [edx], 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0040c07c
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x404d15
xor al, al
jmp 0x404f1d
mov eax, 2
mov word [ebp - 0x20], ax
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404df9
xor al, al
jmp 0x404f1d
mov dword [ebp - 0x24], 0x40000
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x24], 0x40000
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], 0x7530
push 4
lea eax, [ebp - 8]
push eax
push 0x1006
push 0xffff
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x30], 1
push 4
lea eax, [ebp - 0x30]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x404ec3
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x2bf20
mov dword [ebp - 0x3c], 0x1388
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x44]
push ecx
push 0x98000004
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
mov ecx, dword [ebp - 0x50]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
push 0x404f30
push 0
push 0
call fcn.0050b6ef
add esp, 0x18
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x5c], eax
lea edx, [ebp - 0x34]
push edx
push 0
mov eax, dword [ebp - 0x50]
push eax
push 0x405150
push 0
push 0
call fcn.0050b6ef
add esp, 0x18
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x60], eax
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050add6
mov esp, ebp
pop ebp
ret 8