Function at 0x40787a
Capabilities:
Get graphical window text
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1428
call fcn.00416b40
sub esp, 4
push 0x201
push 0
lea eax, [ebp - 0x1418]
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
mov dword [0x45f1b8], 0
call sub.USER32.dll_GetForegroundWindow
mov dword [0x45f0f8], eax
cmp dword [0x45f0f8], 0
jne 0x407964
cmp dword [0x45f100], 0
je 0x4078f1
sub esp, 8
push 0x440540
sub esp, 0xc
push str.GetForegroundWindow:_NULL__sending_pid:0
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
sub esp, 8
push str.__pid:0__n
lea eax, [ebp - 0x1418]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x407937
push 0
lea eax, [ebp - 0x1418]
sub esp, 8
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
push eax
lea eax, [ebp - 0x1418]
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_send
jmp 0x407b85
sub esp, 4
lea eax, [ebp - 0x1418]
sub esp, 8
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
push eax
lea eax, [ebp - 0x1418]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll__write
add esp, 0x10
jmp 0x407b85
sub esp, 4
push 0x200
lea eax, [ebp - 0x1418]
push eax
push dword [0x45f0f8]
call sub.USER32.dll_GetWindowTextW
add esp, 4
mov dword [ebp - 0x1420], eax
sub esp, 8
mov eax, dword [ebp - 0x1420]
add eax, eax
push eax
lea eax, [ebp - 0x1418]
push eax
call fcn.00406b30
add esp, 0x10
mov dword [ebp - 0x1424], eax
sub esp, 8
push dword [ebp - 0x1424]
lea eax, [ebp - 0x1418]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x1424]
call sub.msvcrt.dll_free
add esp, 0x10
cmp dword [0x45f100], 0
je 0x407a4d
sub esp, 8
push 0x440540
sub esp, 0xc
push str._characters
sub esp, 0xc
push dword [ebp - 0x1420]
sub esp, 0xc
push str.got
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.004318b0
add esp, 0x14
push eax
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
sub esp, 8
push 0x440540
sub esp, 0xc
lea eax, [ebp - 0x1418]
push eax
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x407a79
push 0
lea eax, [ebp - 0x1418]
sub esp, 8
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
push eax
lea eax, [ebp - 0x1418]
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_send
jmp 0x407aa1
sub esp, 4
lea eax, [ebp - 0x1418]
sub esp, 8
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
push eax
lea eax, [ebp - 0x1418]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll__write
add esp, 0x10
sub esp, 8
lea eax, [ebp - 0x141c]
push eax
push dword [0x45f0f8]
call sub.USER32.dll_GetWindowThreadProcessId
add esp, 8
mov eax, dword [ebp - 0x141c]
mov dword [0x45f1b8], eax
cmp dword [0x45f100], 0
je 0x407b14
sub esp, 8
push 0x440540
sub esp, 0xc
push 0x5d
sub esp, 0xc
push dword [ebp - 0x141c]
sub esp, 0xc
push 0x446942
push dword [0x45f10c]
call fcn.004417d8
add esp, 0x14
push eax
call fcn.00431ca0
add esp, 0x14
push eax
call fcn.00441b18
add esp, 0x14
push eax
call fcn.00430ae0
add esp, 0x10
sub esp, 4
push dword [ebp - 0x141c]
push str.__pid:_lu__n
lea eax, [ebp - 0x1418]
push eax
call sub.msvcrt.dll_sprintf
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x407b5d
push 0
lea eax, [ebp - 0x1418]
sub esp, 8
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
push eax
lea eax, [ebp - 0x1418]
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_send
jmp 0x407b85
sub esp, 4
lea eax, [ebp - 0x1418]
sub esp, 8
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
push eax
lea eax, [ebp - 0x1418]
push eax
push dword [ebp + 8]
call sub.msvcrt.dll__write
add esp, 0x10
leave
ret