Function at 0x460640
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa9ab
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 3
push 0x3c
mov ecx, 0x5442c8
call fcn.004cbcb0
test eax, eax
je 0x460b25
cmp dword [edi + 0x1b4], 0
jne 0x460b25
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x460b25
mov ebx, dword [eax]
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4606bc
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ecx
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov dword [ebp - 0x14], 0xffffffff
jge 0x460700
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
push 0x104
push eax
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [ebp - 0x1c]
call fcn.0043c0c0
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x460734
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46075f
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push 1
lea esi, [edi + 0x174]
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x24]
mov ecx, 0x543c90
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x543c90]
call dword [eax + 0x28]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x46079f
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0043a620
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4607da
mov ecx, dword [0x544390]
test ecx, ecx
je 0x4607da
push esi
call fcn.0049dee0
test eax, eax
je 0x4607da
cmp byte [edi + 0x159], 0
jne 0x4607da
lea eax, [ebp - 0x24]
lea ecx, [edi + 0x184]
push eax
call fcn.0043a620
mov byte [edi + 0x159], 1
cmp dword [0x543c54], 0
je 0x460854
lea eax, [ebp - 0x10]
push str.MozillaWindowClass
push eax
call fcn.0043c270
add esp, 8
test al, al
je 0x46084b
push dword [0x543c54]
mov esi, dword [sym.imp.USER32.dll_UnhookWinEvent]
call esi
push dword [0x543c50]
mov dword [0x543c54], 0
call esi
lea ecx, [ebp + 8]
mov dword [0x543c50], 0
call fcn.0043a5b0
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
push 0x543c78
call fcn.0045ada0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00441080
cmp dword [0x543c54], 0
jne 0x4608ad
lea eax, [ebp - 0x10]
push str.MozillaWindowClass
push eax
call fcn.00441330
add esp, 8
test al, al
je 0x4608ad
lea ecx, [edi + 0x20c]
call fcn.0046a770
lea eax, [ebp + 8]
mov ecx, 0x543c90
push eax
mov eax, dword [0x543c90]
call dword [eax + 8]
push 2
push 0
push dword [ebp + 8]
push 0x45f090
push 0
push 0x8006
push 0x8000
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov dword [0x543c54], eax
jmp 0x460ac1
lea eax, [ebp - 0x10]
push 0x50a634
push eax
call fcn.0043c270
add esp, 8
test al, al
jne 0x460ac1
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push 1
lea ecx, [ebp - 0x1c]
lea esi, [eax + 1]
lea eax, [edi + 0x208]
push esi
push eax
call fcn.0043bcd0
push esi
push dword [eax + 4]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x1c]
call fcn.0043c0c0
push 0x50a634
call fcn.0045ef70
add esp, 4
cmp eax, 1
jne 0x460a0c
push 0
lea eax, [edi + 0x168]
push eax
lea esi, [edi + 0x208]
push esi
call fcn.0045ebf0
mov dword [ebp + 8], eax
lea eax, [edi + 0x16c]
push 0
push eax
push esi
call fcn.0045ebf0
mov ecx, eax
add esp, 0x18
mov eax, dword [ebp + 8]
test eax, eax
jne 0x460942
test ecx, ecx
je 0x46097d
cmp byte [0x543cb4], 0
jne 0x46097d
cmp dword [edi + 0x198], 0
jne 0x46096a
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push 0
call fcn.0045fe80
mov dword [edi + 0x198], eax
mov eax, dword [ebp + 8]
push dword [edi + 0x198]
lea ecx, [edi + 0x20c]
push eax
push ebx
call fcn.0046a0e0
lea ecx, [ebp - 0x78]
call fcn.0048f390
push edi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.0048f7e0
mov eax, 0x15
mov word [ebp - 0x20], ax
mov eax, ebx
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x78]
call fcn.0048fa70
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call ebx
push dword [esi]
xor eax, eax
lea ecx, [ebp - 0x20]
mov word [ebp - 0x20], ax
call fcn.00441120
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x78]
call fcn.0048faf0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call ebx
lea eax, [ebp - 0x78]
mov ecx, 0x5443f4
push eax
push 9
call fcn.004d2aa0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.0044db70
jmp 0x460a12
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0xc4]
call fcn.0048f390
push edi
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 7
call fcn.0048f7e0
xor eax, eax
mov dword [ebp - 0x8c], 1
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jns 0x460a4d
push eax
call fcn.0043a9b0
mov eax, 8
push 0x50a224
mov word [ebp - 0x20], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x460a82
mov eax, 0xa
mov dword [ebp - 0x18], 0x8007000e
push 0x8007000e
mov word [ebp - 0x20], ax
call fcn.0043a9b0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xc4]
call fcn.0048fa70
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 7
push eax
call ebx
lea eax, [ebp - 0xc4]
mov ecx, 0x5443f4
push eax
push 8
call fcn.004d2aa0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.0044db70
mov edx, dword [ebp - 0x24]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x460ae4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x460b04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x460b25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4