Function at 0x403de0
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 [0x42b0a0]
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.00411850
xor eax, eax
add esp, 0xc
lea esi, [esp + 0x1b4]
cmp edi, eax
je 0x403e2f
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 0x403eb3
mov eax, 0x426c44
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 0x403e60
mov edi, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403e74
mov ecx, dword [0x426c64]
mov dword [edi], ecx
add esi, 0xfffffffe
jmp 0x403e90
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403e90
mov edi, esi
mov ecx, 0xf
mov esi, 0x426c68
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
jmp 0x403fb5
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp], eax
cmp eax, 0xffffffff
jne 0x403f0e
mov eax, 0x426c44
mov edx, esi
sub edx, eax
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 edx, dword [0x426c64]
mov dword [edi], edx
add esi, 0xfffffffe
jmp 0x403f00
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403f00
jmp 0x403e9c
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403fcf
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 0x403fcf
mov eax, 0x426c44
mov edx, esi
sub edx, eax
jmp 0x403f50
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 ecx, dword [0x426c64]
mov dword [edi], ecx
add esi, 0xfffffffe
jmp 0x403f80
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x403f80
mov edi, esi
mov ecx, 0xf
mov esi, 0x426c68
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp]
test eax, eax
je 0x403fb1
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.0040fb84
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 0x404057
mov eax, 0x426ca8
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404015
mov edi, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404030
mov eax, dword [0x426c64]
mov dword [edi], eax
add esi, 0xfffffffe
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x404046
jmp 0x403f8c
mov dword [esp + 0x10], 1
jmp 0x403fb1