Function at 0x45f5fd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa2c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x88]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
test al, 8
je 0x45f716
mov ecx, dword [ebp + 0xc]
push 0x100
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edx, [esp + 0x28]
push edx
call fcn.00412665
mov esi, eax
xor edx, edx
add esp, 4
mov dword [esp + 0x10], edx
test esi, esi
je 0x45f67c
lea edi, [esi - 1]
test edi, edi
jl 0x45f67c
movzx eax, word [esp + edi*2 + 0x28]
push eax
call fcn.0041482d
add esp, 4
dec edi
test eax, eax
je 0x45f678
inc dword [esp + 0x10]
test edi, edi
jge 0x45f65d
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x138]
cmp eax, esi
jle 0x45f99b
mov ecx, dword [ebx + 0x13c]
cmp ecx, edx
jle 0x45f99b
sub eax, ecx
add eax, edx
cmp esi, eax
jne 0x45f99b
mov eax, dword [ebx + 0x9c]
push esi
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.00414893
add esp, 0xc
test eax, eax
jne 0x45f99b
inc dword [ebx + 0x134]
mov eax, dword [ebx + 0x134]
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x238]
push str._s_u
push eax
call fcn.004148ca
mov eax, dword [ebx + 0x9c]
push eax
lea ecx, [esp + 0x244]
push ecx
call fcn.00414774
add esp, 0x18
test eax, eax
jne 0x45f99b
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xd8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, 0x400
je 0x45f7b6
mov eax, dword [ebp + 0xc]
push eax
push 0x202
lea edi, [ebx + 8]
push edi
call fcn.004398e9
mov esi, eax
test esi, esi
je 0x45f7a6
mov edx, dword [ebx + 4]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0x1388
push 2
push esi
push 0x101
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x45f79f
cmp dword [esp + 0xc], 0
jbe 0x45f79f
push 0x202
lea ecx, [esp + 0x2c]
push ecx
push esi
push edi
call fcn.00439818
mov eax, dword [ebx + 0xac]
push eax
lea eax, [esp + 0x2c]
xor edx, edx
push eax
mov word [esp + 0x230], dx
call fcn.00414774
add esp, 8
test eax, eax
jne 0x45f79f
mov dword [esp + 0x10], 1
push esi
push edi
call fcn.00439892
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], 1
mov esi, dword [esp + 0xc]
test byte [ebx + 0x88], 0x10
je 0x45f81a
mov edx, dword [ebp + 0xc]
push 0x400
lea ecx, [esp + 0x234]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edi, [esp + 0x230]
lea esi, [esp + 0x18]
call fcn.00405a50
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0xec]
push esi
call fcn.0045ee2b
lea ecx, [esp + 0x18]
call fcn.004059c0
push esi
call fcn.0044f35b
test al, al
je 0x45f80e
inc dword [esp + 0x10]
inc dword [esp + 0xc]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x88]
test al, 0x20
je 0x45f84b
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebx + 0xcc], eax
jne 0x45f99b
mov dword [ebx + 0xd8], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test al, 0xc0
jne 0x45f85a
test eax, 0x300
je 0x45f8eb
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push edx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 0x88]
test al, 0x40
je 0x45f8a7
mov ecx, dword [ebx + 0xdc]
cmp ecx, dword [esp + 0x10]
jne 0x45f8a6
inc edi
inc esi
test al, al
jns 0x45f8b9
mov edx, dword [ebx + 0xe0]
cmp edx, dword [esp + 0x14]
jne 0x45f8b8
inc edi
inc esi
test eax, 0x100
je 0x45f8d2
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
cmp dword [ebx + 0xe4], ecx
jne 0x45f8d1
inc edi
inc esi
test eax, 0x200
je 0x45f8eb
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
cmp dword [ebx + 0xe8], edx
jne 0x45f8ea
inc edi
inc esi
test al, 1
je 0x45f923
mov ecx, dword [ebp + 0xc]
push 0x100
lea eax, [esp + 0x234]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [ebx + 0x8c]
lea edx, [esp + 0x230]
push edx
push eax
call fcn.00414774
add esp, 8
test eax, eax
jne 0x45f922
inc edi
inc esi
test byte [ebx + 0x88], 4
je 0x45f960
mov ecx, dword [ebp + 0xc]
push 0x400
lea eax, [esp + 0x234]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0xbc]
lea edx, [esp + 0x230]
push edx
push eax
call fcn.00414774
add esp, 8
test eax, eax
jne 0x45f95f
inc edi
inc esi
test byte [ebx + 0x88], 2
je 0x45f983
cmp edi, esi
jne 0x45f982
inc dword [ebx + 0x134]
mov eax, dword [ebx + 0x134]
cmp eax, dword [ebx + 0xd0]
jne 0x45f982
inc edi
inc esi
cmp edi, esi
jne 0x45f99b
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xd8], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8