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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46aee6
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x48f244]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x88], esi
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 0x65], 0
jb 0x401d56
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x401fd8
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
movzx eax, byte [ecx + 3]
push eax
movzx eax, byte [ecx + 2]
push eax
movzx eax, byte [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
lea eax, [ebp - 0x24]
push str._d._d._d._d
push eax
call fcn.00404430
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], 0
add esp, 0x18
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x3c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401db4
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00405800
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov dword [ebp - 0x74], 1
test ecx, ecx
je 0x401e97
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
push 0
cmovae eax, dword [ebp - 0x3c]
push 0
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x401e97
inc eax
xor ecx, ecx
mov dword [ebp - 0x78], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004390a3
add esp, 4
mov edi, eax
push dword [ebp - 0x78]
push 0
push edi
call fcn.00444b80
add esp, 0xc
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
cmovae eax, dword [ebp - 0x3c]
push dword [ebp - 0x6c]
push edi
push dword [ebp - 0x2c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov word [edi + eax*2], cx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401e75
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x54]
call fcn.00405100
push edi
call fcn.004390ac
add esp, 4
mov edi, 2
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 8]
call fcn.004053d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x401ee6
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401edc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fed
push edx
push ecx
call fcn.00439095
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x401f1e
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401f14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401fed
push edx
push ecx
call fcn.00439095
add esp, 8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x401f2d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x401ff2
push 4
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 0x2710
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0xc]
mov word [ebp - 0x64], di
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x62], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x402007
mov al, 1
jmp 0x401fba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004390b1
mov esp, ebp
pop ebp
ret 8
push 0x48d00c
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 9
push eax
call fcn.00444d5c
call fcn.004480ba
push 0x48d00c
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0xa
push eax
call fcn.00444d5c
push 0x48d00c
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 2
push eax
call fcn.00444d5c
int3