Function at 0x404b80
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 [0x5a42e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x50], ecx
push str.DeHJfsvDa::Connect
push 0x57fc20
call fcn.00401c90
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
xor edx, edx
mov eax, dword [ebp - 0x50]
add eax, 0x20
mov dword [eax], edx
mov dword [eax + 4], edx
mov word [eax + 8], dx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x20], eax
mov edx, dword [edx + 0x18]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x28], 0xca
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x29], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x64], 0xffffffff
jne 0x404c20
xor al, al
jmp 0x404ec5
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 1
push eax
call fcn.0040d1ec
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ecx
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
mov byte [eax], 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0040d1f7
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x404cbd
xor al, al
jmp 0x404ec5
mov ecx, 2
mov word [ebp - 0x20], cx
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 edx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
push 0x10
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404da1
xor al, al
jmp 0x404ec5
mov dword [ebp - 0x24], 0x40000
push 4
lea ecx, [ebp - 0x24]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x24], 0x40000
push 4
lea ecx, [ebp - 0x24]
push ecx
push 0x1002
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 8], 0x7530
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x30], 1
push 4
lea ecx, [ebp - 0x30]
push ecx
push 8
push 0xffff
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x404e6b
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x2bf20
mov dword [ebp - 0x3c], 0x1388
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x44]
push edx
push 0x98000004
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
mov edx, dword [ebp - 0x50]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
push 0x404ee0
push 0
push 0
call fcn.0052b6bb
add esp, 0x18
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x5c], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
push 0x4050f0
push 0
push 0
call fcn.0052b6bb
add esp, 0x18
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x60], eax
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052ad34
mov esp, ebp
pop ebp
ret 8