Function at 0x418818
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x44dec4
call fcn.0044b2e0
sub esp, 0x70
mov eax, dword [0x464b24]
push ebx
push esi
push edi
xor eax, ebp
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x3c], edi
mov dword [ebp - 0x10], eax
je 0x418b0e
cmp dword [ebx + 0x444], 0xffffffff
je 0x418b0e
mov eax, dword [ebx + 0x34]
cmp dword [eax - 0xc], edi
je 0x418b0e
push edi
lea esi, [ebx + 0x28]
push esi
call dword [sym.imp.ATL71.DLL_Ordinal_30]
cmp dword [esi], edi
mov dword [ebp - 0x34], edi
jne 0x418881
push esi
push 0x4517b0
push 0x17
push edi
push 0x451848
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
jl 0x418ad9
mov eax, dword [ebx + 0x50]
mov word [ebp - 0x20], 2
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call fcn.00402b25
mov ecx, eax
call fcn.004020ec
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x444]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x418aef
cmp dword [ebp - 0x28], edi
jne 0x418ad9
push 0x20090110
call fcn.0041138b
push 1
mov dword [ebp - 0x64], eax
call fcn.0041138b
push 1
mov dword [ebp - 0x60], eax
call fcn.0041138b
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x34]
push dword [eax - 0xc]
call fcn.0041138b
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x34]
mov eax, dword [eax - 0xc]
add eax, 0x18
push eax
call fcn.0044b28e
mov esi, eax
push 0x18
lea eax, [ebp - 0x64]
push eax
push esi
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebx + 0x34]
push dword [eax - 0xc]
push eax
lea eax, [esi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebx + 0x34]
mov eax, dword [eax - 0xc]
lea edi, [eax + 0x18]
add esp, 0x2c
test edi, edi
mov dword [ebp - 0x24], edi
je 0x41896d
push 0
push dword [ebp - 0x24]
mov eax, edi
sub eax, dword [ebp - 0x24]
add eax, esi
push eax
push dword [ebx + 0x444]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4189e9
sub dword [ebp - 0x24], eax
jne 0x418946
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov esi, dword [sym.imp.WS2_32.dll_recv]
pop ecx
xor edi, edi
push 0
push 0x18
pop eax
sub eax, edi
push eax
lea eax, [ebp + edi - 0x7c]
push eax
push dword [ebx + 0x444]
call esi
cmp eax, 0xffffffff
je 0x4189fb
test eax, eax
je 0x4189fb
add edi, eax
cmp edi, 0x18
jne 0x41897c
push dword [ebp - 0x74]
and dword [ebp - 0x24], 0
call fcn.004113ae
mov edi, eax
pop ecx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [ebp - 4], 0
test edi, edi
jne 0x418a06
push str._config____config_
lea ecx, [ebp - 0x2c]
call fcn.00402143
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040f674
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x418a82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x418ad7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x418ad7
lea eax, [edi + 1]
push eax
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
inc eax
push eax
push 0
push edi
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push 0
sub ecx, eax
push ecx
add eax, edi
push eax
push dword [ebx + 0x444]
call esi
cmp eax, 0xffffffff
je 0x418abe
test eax, eax
je 0x418abe
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jne 0x418a2a
and dword [ebp - 0x38], 0
mov esi, dword [ebp - 0x2c]
push dword [esi + 0xc]
call sub.MSVCR71.dll_strlen
pop ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
push esi
lea ecx, [ebp - 0x4c]
call fcn.00418511
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [ebx + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
test eax, eax
jne 0x418ab0
cmp word [ebp - 0x34], 0xffff
jne 0x418ab0
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
jmp 0x418af5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x402
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
or eax, 0xffffffff
jmp 0x418b13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0x30], edi
je 0x418ad9
push edi
push edi
push 0x402
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x418b13
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b2c4
leave
ret