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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
call fcn.00402921
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [ebp - 0x28]
mov byte [edx + 0xb5], 0
cmp dword [0x419e34], 0
je 0x401b80
cmp dword [0x419e34], 4
je 0x401b80
cmp dword [0x419e34], 5
je 0x401b80
xor al, al
jmp 0x401d4d
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0xa8], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0xa8], 0xffffffff
jne 0x401bb8
xor al, al
jmp 0x401d4d
mov dword [ebp - 0x18], 0
cmp dword [0x419e34], 0
je 0x401bd8
push 0x419e38
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
jmp 0x401be5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x18], 0
jne 0x401c02
xor al, al
jmp 0x401d4d
mov word [ebp - 0x10], 2
cmp dword [0x419e34], 0
je 0x401c25
mov cx, word [0x41816c]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
jmp 0x401c34
mov dx, word [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401c73
xor al, al
jmp 0x401d4d
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x419e34], 5
jne 0x401cac
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.00401d53
and eax, 0xff
test eax, eax
jne 0x401cac
xor al, al
jmp 0x401d4d
mov byte [ebp - 0x14], 1
push 1
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401d0d
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x2bf20
mov dword [ebp - 0x1c], 0x1388
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x24]
push ecx
push 0x98000004
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 0xb5], 1
push 1
push 0
push 0
mov edx, dword [ebp - 0x28]
push edx
push 0x4023bc
push 0
push 0
call fcn.0040bc97
add esp, 0x1c
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0xa4], eax
mov al, 1
mov esp, ebp
pop ebp
ret 8