Function at 0x40bdb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_IsWindow]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40be16
push 0x24
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40c226
mov eax, 0x48ce80
test eax, eax
je 0x40be3f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0045d9c6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40be50
push ebx
call fcn.0045d9cc
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp + 0x10]
push 1
mov ebx, 0x198
call fcn.0045f4e0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40be80
add eax, 8
push eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40be8b
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40beb2
push 0xb6
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bec2
push ebx
call fcn.0045d9cc
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0
push 0
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowExW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40befd
push 0xfd
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40c226
push 0x80000301
push 0
push 0x208
push 1
mov ebx, 0x1bc
call fcn.0045f170
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bf3f
push ebx
call fcn.0045d9cc
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], esp
push 0x104
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40bf55
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetClassNameW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40bf7f
push 0x19f
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 0x20], esp
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x40bf8e
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40bf99
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40bfc0
push 0x1ed
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40c1c5
mov dword [ebp - 0x20], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40bff9
push 0x244
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x48b2c3]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401000
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x48ce4d]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401000
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.0045f170
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c064
push ebx
call fcn.0045d9cc
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c078
add eax, 8
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40c0a2
push 0x2b9
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.0040bada
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
call fcn.0040bada
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x24]
push dword [ebp - 0x20]
xor eax, eax
call dword [0x490034]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40c0e9
push 0x331
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40c1c5
mov dword [ebp - 0x20], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetParent]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40c122
push 0x370
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push 0xfffffff4
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40c156
push 0x3a4
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 2
mov ebx, 0xa00
call fcn.0045f5b0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 8]
push dword [ebp - 0x20]
push 0x111
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageW]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c1bb
push 0x3e2
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov eax, 1
jmp 0x40c230
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.0040bdb0
test eax, eax
je 0x40c1e5
mov eax, 1
jmp 0x40c230
mov dword [ebp - 0x20], esp
push 0
push 0
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowExW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40c21e
push 0x4b5
push 0x4022d9e
push 6
call fcn.0045d9d2
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x40bf00
mov eax, 0
jmp 0x40c230
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c241
push ebx
call fcn.0045d9cc
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40c251
push ebx
call fcn.0045d9cc
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c261
push ebx
call fcn.0045d9cc
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc