Function at 0x412680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp - 0x98]
call fcn.00409d71
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x98]
push eax
call fcn.0040a1b3
lea ecx, [ebp - 0x3c]
call fcn.004016e9
xor edi, edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], 0x422414
mov dword [ebp - 0x1c], edi
call fcn.004058fe
cmp byte [ebx + 0x7c], 0
mov esi, 0x422420
mov dword [ebp - 0x28], esi
je 0x412d02
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x4c], edi
call fcn.004058fe
push edi
push edi
mov edi, pe_nt_image_headers32
mov dword [ebp - 0x58], esi
push edi
push dword [ebx + 0x50]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x412c40
push 0
push 0
push edi
push dword [ebx + 0x58]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x412838
push 0x425bec
lea ecx, [ebp - 0x4c]
call fcn.0040311e
and byte [ebp - 0x48], 0
xor eax, eax
lea edi, [ebp - 0x47]
push 0
stosd dword es:[edi], eax
push 0
push 0x147
push dword [ebx + 0x74]
stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea eax, [ebp - 0x48]
push 0x425be4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x58]
push eax
call fcn.004018f1
push dword [0x428be0]
lea ecx, [ebp - 0x3c]
push 0x25
call fcn.00401d27
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x28]
push eax
call fcn.004021cc
mov edi, 0x425764
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
mov dword [ebp - 4], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
push dword [0x428be0]
lea ecx, [ebp - 0x3c]
push 0x6f
call fcn.00401d27
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 4], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.00405cf3
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
lea eax, [ebp - 0x3c]
push 0x32
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd38
lea ecx, [ebp - 0x14]
call fcn.004016d3
push 0x32
push eax
push dword [ebx + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x14]
jmp 0x412c35
push 0
push 0
push edi
push dword [ebx + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x412a02
push 0x425bdc
lea ecx, [ebp - 0x4c]
call fcn.0040311e
and byte [ebp - 0x48], 0
xor eax, eax
lea edi, [ebp - 0x47]
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x147
push 0
push esi
push dword [ebx + 0x70]
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
push 0
push 0
push esi
mov dword [ebp - 4], eax
push dword [ebx + 0x74]
call edi
push dword [ebp - 4]
push eax
lea eax, [ebp - 0x48]
push 0x425bd0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x58]
push eax
call fcn.004018f1
push dword [0x428be0]
lea ecx, [ebp - 0x3c]
push 0x6e
call fcn.00401d27
mov edi, dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00405cf3
mov edi, 0x425764
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push eax
mov dword [ebp - 4], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
lea eax, [ebp - 0x3c]
push 0x32
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd38
lea ecx, [ebp - 0x14]
call fcn.004016d3
push 0x32
push eax
push dword [ebx + 0x70]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x14]
call fcn.0040665c
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 4], eax
call esi
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.00405cf3
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push eax
mov dword [ebp - 4], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
push dword [0x428be0]
lea ecx, [ebp - 0x3c]
push 0x6f
call fcn.00401d27
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 4], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 4]
call fcn.00405cf3
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
lea eax, [ebp - 0x3c]
push 0x32
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd38
lea ecx, [ebp - 0x14]
call fcn.004016d3
push 0x32
push eax
push dword [ebx + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x14]
jmp 0x412c35
push 0x425bc8
lea ecx, [ebp - 0x4c]
call fcn.0040311e
and byte [ebp - 0x48], 0
xor eax, eax
lea edi, [ebp - 0x47]
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x147
push 0
push esi
push dword [ebx + 0x6c]
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
push 0
push 0
push esi
mov dword [ebp - 4], eax
push dword [ebx + 0x70]
call edi
push 0
push 0
push esi
mov dword [ebp - 0x18], eax
push dword [ebx + 0x74]
call edi
push dword [ebp - 4]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push 0x425bbc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x58]
push eax
call fcn.004018f1
push dword [0x428be0]
lea ecx, [ebp - 0x3c]
push 0x6e
call fcn.00401d27
mov edi, dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00405cf3
mov edi, 0x425764
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push eax
mov dword [ebp - 0x18], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
lea eax, [ebp - 0x3c]
push 0x32
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd38
lea ecx, [ebp - 0x14]
call fcn.004016d3
push 0x32
push eax
push dword [ebx + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x14]
call fcn.0040665c
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x18], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00405cf3
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push eax
mov dword [ebp - 0x18], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
lea eax, [ebp - 0x3c]
push 0x32
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd38
lea ecx, [ebp - 0x14]
call fcn.004016d3
push 0x32
push eax
push dword [ebx + 0x70]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x14]
call fcn.0040665c
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x18], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00405cf3
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push eax
mov dword [ebp - 0x18], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
push dword [0x428be0]
lea ecx, [ebp - 0x3c]
push 0x6f
call fcn.00401d27
mov eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x18], eax
call esi
push eax
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00405cf3
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.004058fe
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], 0x422420
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00405cf3
lea ecx, [ebp - 0x14]
call fcn.004016fd
lea eax, [ebp - 0x3c]
push 0x32
push eax
lea ecx, [ebp - 0x14]
call fcn.0040cd38
lea ecx, [ebp - 0x14]
call fcn.004016d3
push 0x32
push eax
push dword [ebx + 0x74]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x14]
call fcn.0040665c
mov edi, dword [ebp - 0x30]
push edi
jmp 0x412c5a
push dword [0x428be0]
lea ecx, [ebp - 0x3c]
push 0x26
call fcn.00401d27
mov edi, dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push edi
call esi
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.00405cf3
lea eax, [ebp - 0x58]
mov ecx, 0x428ca8
push eax
call fcn.0040b6f0
cmp dword [ebp - 0x4c], 0
je 0x412ca3
push dword [ebp - 0x4c]
call esi
test eax, eax
je 0x412ca3
cmp byte [ebx + 0x7c], 0
je 0x412cb5
lea eax, [ebp - 0x58]
push 1
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x98]
call fcn.00409ef8
jmp 0x412cb5
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x98]
push eax
call fcn.0040a1b3
cmp dword [ebp - 0x1c], 0
jne 0x412cbf
xor eax, eax
jmp 0x412cc4
push dword [ebp - 0x1c]
call esi
add eax, 5
push eax
call fcn.0041cd9f
pop ecx
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00401876
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push esi
push 0xffffffffffffffff
push 0x91ef
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x58]
call fcn.004016fd
mov eax, dword [ebp + 0x14]
push 1
pop esi
push esi
mov dword [eax], esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x28]
call fcn.004016fd
lea ecx, [ebp - 0x3c]
call fcn.004016fd
lea ecx, [ebp - 0x98]
call fcn.0040a50c
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10