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

Disassembly:
mov eax, 0x4249d6
call fcn.00422230
sub esp, 0x5c
mov eax, dword [0x430520]
push ebx
push esi
push edi
xor eax, ebp
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
mov dword [ebp - 0x10], eax
je 0x4181ac
cmp dword [esi + 0x444], 0xffffffff
je 0x4181ac
mov eax, dword [esi + 0x34]
cmp dword [eax - 0xc], edi
je 0x4181ac
push edi
lea ebx, [esi + 0x28]
push ebx
call dword [sym.imp.ATL71.DLL_Ordinal_30]
cmp dword [ebx], edi
mov dword [ebp - 0x34], edi
jne 0x417f5d
push ebx
push 0x42750c
push 0x17
push edi
push 0x4275a4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
jl 0x418170
mov eax, dword [esi + 0x50]
mov word [ebp - 0x20], 2
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call fcn.00402b32
mov ecx, eax
call fcn.004020f9
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 [esi + 0x444]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x38], edi
cmp eax, edi
mov dword [ebp - 4], edi
jne 0x418186
cmp dword [ebp - 0x28], edi
jne 0x41818c
push 0x20090110
call fcn.004113a5
push 1
mov dword [ebp - 0x50], eax
call fcn.004113a5
push 1
mov dword [ebp - 0x4c], eax
call fcn.004113a5
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x34]
push dword [eax - 0xc]
call fcn.004113a5
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x34]
mov eax, dword [eax - 0xc]
add eax, 0x18
push eax
call fcn.004221dd
mov edi, eax
push 0x18
lea eax, [ebp - 0x50]
push eax
push edi
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0x34]
push dword [eax - 0xc]
push eax
lea eax, [edi + 0x18]
push eax
call sub.MSVCR71.dll_memcpy
mov eax, dword [esi + 0x34]
mov eax, dword [eax - 0xc]
lea ebx, [eax + 0x18]
add esp, 0x2c
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41804b
push 0
push dword [ebp - 0x24]
mov eax, ebx
sub eax, dword [ebp - 0x24]
add eax, edi
push eax
push dword [esi + 0x444]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4180a7
sub dword [ebp - 0x24], eax
jne 0x418028
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov edi, dword [sym.imp.WS2_32.dll_recv]
pop ecx
xor ebx, ebx
push 0
push 0x18
pop eax
sub eax, ebx
push eax
lea eax, [ebp + ebx - 0x68]
push eax
push dword [esi + 0x444]
call edi
cmp eax, 0xffffffff
je 0x4180c1
test eax, eax
je 0x4180c1
add ebx, eax
cmp ebx, 0x18
jne 0x41805a
push dword [ebp - 0x60]
xor ebx, ebx
call fcn.004113c8
and dword [ebp - 0x2c], ebx
pop ecx
mov dword [ebp - 0x28], eax
test eax, eax
mov byte [ebp - 4], 1
jne 0x4180c9
push str._config____config_
lea ecx, [ebp - 0x2c]
call fcn.0040c061
jmp 0x41811f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x41816e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4180b4
inc eax
push eax
call fcn.004221dd
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
inc eax
push eax
push 0
push dword [ebp - 0x24]
call sub.MSVCR71.dll_memset
add esp, 0x10
mov eax, dword [ebp - 0x28]
push 0
sub eax, ebx
push eax
mov eax, dword [ebp - 0x24]
add eax, ebx
push eax
push dword [esi + 0x444]
call edi
cmp eax, 0xffffffff
je 0x418151
test eax, eax
je 0x418151
add ebx, eax
cmp ebx, dword [ebp - 0x28]
jne 0x4180e5
push dword [ebp - 0x24]
lea ecx, [ebp - 0x2c]
call fcn.00417c62
push dword [ebp - 0x24]
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push dword [ebp - 0x2c]
push eax
call dword [ecx + 0x104]
test eax, eax
jne 0x418144
cmp word [ebp - 0x34], 0xffff
jne 0x418144
mov dword [ebp - 0x30], 1
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edi, edi
jmp 0x41818c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 0x24]
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push 0
call edi
push 0
call edi
xor edi, edi
push edi
push 0xffffffffffffffff
push 0x402
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
or eax, 0xffffffff
jmp 0x4181b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x30], edi
je 0x418170
push edi
push edi
push 0x402
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x4181b1
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.00422213
leave
ret