Function at 0x4012c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405072
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x214], 0
push 0x4062e4
lea ecx, [ebp - 0x2a8]
movq qword [ebp - 0x21c], xmm0
call fcn.00402da0
push str.OllyDbg
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 0
call fcn.00402da0
push str.x64dbg
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 1
call fcn.00402da0
push str.WinDbg
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00402da0
lea ebx, [ebp - 0x248]
mov dword [ebp - 4], 3
lea edi, [ebp - 0x2a8]
mov dword [ebp - 0x21c], 0
mov ecx, ebx
mov dword [ebp - 0x218], 0
sub ecx, edi
mov dword [ebp - 0x214], 0
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40142b
cmp eax, 0xaaaaaaa
ja 0x4015f6
lea esi, [eax + eax*2]
shl esi, 3
test esi, esi
jne 0x4013b7
xor eax, eax
jmp 0x4013f3
cmp esi, 0x1000
jb 0x4013ea
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x4015fb
push eax
call fcn.0040404d
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4013e4
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4013f3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
call fcn.0040404d
add esp, 4
add esi, eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x228], esi
push esi
push eax
mov edx, ebx
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00403e00
add esp, 8
mov dword [ebp - 0x218], eax
push 0x402d40
push 4
push 0x18
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 6
push eax
call fcn.0040407d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x401579
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x100
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], eax
cmp esi, eax
je 0x401579
nop dword [eax]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402da0
cmp dword [esi + 0x14], 7
mov ebx, esi
jbe 0x4014bc
mov ebx, dword [esi]
cmp dword [eax + 0x14], 7
mov ecx, eax
mov dword [ebp - 0x220], eax
jbe 0x4014d2
mov ecx, dword [eax]
mov dword [ebp - 0x220], ecx
mov edi, dword [esi + 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x22c], edi
cmp edi, eax
ja 0x401512
sub eax, edi
test edi, edi
jne 0x4014ec
xor esi, esi
jmp 0x401515
inc eax
mov esi, ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x230], eax
sub eax, esi
sar eax, 1
je 0x401512
movzx ecx, word [ebx]
cmp word [esi], cx
je 0x4015a4
add esi, 2
sub eax, 1
jne 0x401501
or esi, 0xffffffff
mov ecx, dword [ebp - 0x234]
cmp ecx, 7
jbe 0x401555
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40154b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4013e4
push ecx
push edx
call fcn.00404192
add esp, 8
cmp esi, 0xffffffff
jne 0x4015f2
mov esi, dword [ebp - 0x224]
add esi, 0x18
mov dword [ebp - 0x224], esi
cmp esi, dword [ebp - 0x228]
jne 0x4014a0
xor bl, bl
lea ecx, [ebp - 0x21c]
call fcn.00403440
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040403f
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401512
mov edx, edi
mov ecx, ebx
test edi, edi
je 0x4015d1
mov edi, esi
sub edi, ebx
nop dword [eax + eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4015de
add ecx, 2
sub edx, 1
jne 0x4015c0
sub esi, dword [ebp - 0x220]
sar esi, 1
jmp 0x401515
mov edi, dword [ebp - 0x22c]
add esi, 2
mov eax, dword [ebp - 0x230]
jmp 0x4014f8
mov bl, 1
jmp 0x40157b
call fcn.00403c00
call fcn.004010d0
int3