Function at 0x403e50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x9ac
mov eax, dword [0x42f094]
xor eax, esp
mov dword [esp + 0x9a8], eax
push ebp
mov ebp, dword [esp + 0x9b8]
push esi
push edi
xor eax, eax
push 0x7fe
mov edi, ecx
push eax
lea ecx, [esp + 0x1be]
push ecx
mov word [esp + 0x1c0], ax
call fcn.00414250
xor eax, eax
add esp, 0xc
lea esi, [esp + 0x1b4]
cmp edi, eax
je 0x403e9f
mov esi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push eax
xor edx, edx
push 0x101
mov word [esi], dx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403f23
mov eax, 0x42b884
mov edx, esi
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403ed0
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403ee4
mov ecx, dword [0x42b8a4]
mov dword [edi], ecx
add esi, 0xfffffffe
jmp 0x403f00
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403f00
mov edi, esi
mov ecx, 0xf
mov esi, 0x42b8a8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
jmp 0x404035
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x403f93
mov eax, 0x42b8e8
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403f40
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403f54
mov edx, dword [0x42b908]
mov dword [edi], edx
add esi, 0xfffffffe
jmp 0x403f70
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403f70
mov edi, esi
mov ecx, 0xf
mov esi, 0x42b90c
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
jmp 0x404035
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40404f
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x40404f
mov eax, 0x42b94c
mov edx, esi
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403fd0
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403fe4
mov ecx, dword [0x42b96c]
mov dword [edi], ecx
add esi, 0xfffffffe
jmp 0x404000
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x404000
mov edi, esi
mov ecx, 0xf
mov esi, 0x42b970
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp]
test eax, eax
je 0x404031
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x9b4]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00411ee8
add esp, 0x9ac
ret 8
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, dword [esp + 0x9bc]
mov edx, 2
push eax
mov dword [esp + 0x1c], ecx
mov word [esp + 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp]
push 0x10
lea ecx, [esp + 0x18]
push ecx
push edx
mov word [esp + 0x22], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4040e3
mov eax, 0x42b9b0
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404095
mov edi, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4040b0
mov eax, dword [0x42b9d0]
mov dword [edi], eax
add esi, 0xfffffffe
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4040c6
mov edi, esi
mov ecx, 0xf
mov esi, 0x42b9d4
jmp 0x404018
mov dword [esp + 0x10], 1
jmp 0x404031