Function at 0x4159d9
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
push esi
push edi
mov esi, 0x1000
push esi
mov dword [ebp - 0xc], ecx
call ebx
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 0x18], edi
jne 0x41597a
mov esi, 0x8007000e
jmp 0x415c69
mov ecx, dword [ebp - 0xc]
push edi
call fcn.00412d70
test eax, eax
jge 0x41598e
mov esi, eax
jmp 0x415c5f
lea eax, [ebp - 2]
push eax
push edi
call fcn.00412b56
test eax, eax
jne 0x4159a6
mov esi, 0x80020009
jmp 0x415c5f
push esi
call ebx
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 8], edi
jne 0x4159bd
mov esi, 0x8007000e
jmp 0x415c5f
mov ecx, dword [ebp - 0xc]
call fcn.00412d47
mov ecx, dword [ebp - 0xc]
push edi
call fcn.00412d70
test eax, eax
jge 0x4159d9
mov esi, eax
jmp 0x415c55
movzx eax, word [ebp - 2]
sub eax, 8
je 0x415b1a
sub eax, 9
je 0x415a60
dec eax
dec eax
jne 0x415c40
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x415a23
push edi
call fcn.00411e6d
test al, al
je 0x415a23
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0044f080
mov eax, esp
jmp 0x415a2c
push edi
lea ecx, [ebp - 0x10]
call fcn.00415511
push esi
push dword [ebp - 8]
push eax
call fcn.00411f62
test eax, eax
je 0x415b4d
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.0041269a
jmp 0x415c40
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp + 0x14], eax
jne 0x415b39
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0x400
mov dword [ebp - 0x14], esi
ja 0x415a9f
push esi
call fcn.00411e6d
test al, al
je 0x415a9f
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0044f080
mov ebx, esp
jmp 0x415aaa
push esi
lea ecx, [ebp - 0x10]
call fcn.00415511
mov ebx, eax
test ebx, ebx
je 0x415b39
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x415b00
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ebx]
mov eax, dword [ebp - 8]
movsx eax, byte [edi + eax]
push eax
call fcn.00412be8
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x415acd
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push ebx
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x415c40
mov dword [ebp - 0x14], edi
xor edi, edi
cmp byte [ebp + 0x14], 0
je 0x415c26
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xffe
jle 0x415b43
mov esi, 0x80004005
jmp 0x415c55
push esi
call ebx
mov edi, eax
test edi, edi
pop ecx
jne 0x415b57
mov esi, 0x8007000e
jmp 0x415c55
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
and dword [ebp + 0x14], 0
push 0x402f44
call fcn.00415627
mov ebx, eax
test ebx, ebx
je 0x415c1e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x415ba3
push esi
call fcn.00411e6d
test al, al
je 0x415ba3
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0044f080
mov eax, esp
jmp 0x415bac
push esi
lea ecx, [ebp + 0x14]
call fcn.00415511
push esi
push ebx
push eax
call fcn.00411f80
test eax, eax
mov dword [ebp - 4], eax
je 0x415c7d
mov ebx, dword [ebp - 8]
push eax
push ebx
call fcn.00412c94
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
je 0x415c1e
cmp esi, dword [ebp + 0x10]
je 0x415be4
push esi
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x22
je 0x415c1e
sub esi, ebx
push esi
push ebx
push edi
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x402f40
push ebx
push edi
call esi
push dword [ebp - 4]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x20]
push eax
push edi
call esi
mov dword [ebp - 0x14], edi
lea ecx, [ebp + 0x14]
call fcn.0040c9a1
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.004126bd
test edi, edi
je 0x415c40
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.00412d70
test eax, eax
jl 0x4159d2
xor esi, esi
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0040c9a1
mov eax, esi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [sym.imp.msvcrt.dll_free]
push edi
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
call esi
add esp, 0xc
lea ecx, [ebp + 0x14]
call fcn.0040c9a1
jmp 0x415970