Function at 0x403e60
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 [0x43fc54]
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.0041e180
xor eax, eax
add esp, 0xc
lea esi, [esp + 0x1b4]
cmp edi, eax
je 0x403eaf
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 0x403f33
mov eax, 0x438654
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 0x403ee0
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403ef4
mov ecx, dword [0x438674]
mov dword [edi], ecx
add esi, 0xfffffffe
jmp 0x403f10
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403f10
mov edi, esi
mov ecx, 0xf
mov esi, 0x438678
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 0x403f8e
mov eax, 0x438654
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403f50
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403f64
mov edx, dword [0x438674]
mov dword [edi], edx
add esi, 0xfffffffe
jmp 0x403f80
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403f80
jmp 0x403f1c
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, 0x438654
mov edx, esi
sub edx, eax
jmp 0x403fd0
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 [0x438674]
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, 0x438678
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.0041bef3
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 0x4040d7
mov eax, 0x4386b8
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 [0x438674]
mov dword [edi], eax
add esi, 0xfffffffe
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x4040c6
jmp 0x40400c
mov dword [esp + 0x10], 1
jmp 0x404031