Function at 0x45ae0f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xb8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x68]
push ecx
push edx
push 0x4b96a0
call fcn.00445ed6
test al, al
jne 0x45ae49
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4b9714]
mov edx, dword [ecx + eax*4]
mov edi, dword [edx]
movzx eax, byte [edi + 0x88]
mov esi, dword [edi]
mov dword [ebx], 0xffffffff
cmp eax, 0x1c
ja case.0x45ae76.2
movzx eax, byte [eax + 0x45b57b]
jmp dword [eax*4 + 0x45b53f]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x188
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x45b500
push 0
push edi
push 0x18a
push esi
call ebx
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ac9
add esp, 4
push eax
push edi
push 0x189
push esi
mov dword [ebp + 0x10], eax
call ebx
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x147
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je case.0x45ae76.2
push 0
push edi
push 0x149
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ac9
add esp, 4
mov ebx, eax
push ebx
push edi
push 0x148
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 0
push 0
push 0
je 0x45af99
push 0xe
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ac9
add esp, 4
push edi
push eax
push esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x45b534
mov dword [ebx], 0
push eax
call fcn.004110b6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xf0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], eax
test eax, eax
jne 0x45afb1
mov dword [ebx], 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x408
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0x400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x130b
push esi
call edi
cmp byte [ebp + 0x10], 0
mov dword [ebx], eax
je 0x45b02f
lea ecx, [ebp - 0x84]
push ecx
push eax
push 0x133c
push esi
mov dword [ebp - 0x84], 8
call edi
mov edx, dword [ebp - 0x6c]
mov dword [ebx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x45ae3e
push 0x208
call fcn.00412ac9
mov edx, dword [ebp + 8]
add esp, 4
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0xb4]
push ecx
push 0
mov esi, eax
mov eax, dword [edi + 8]
push edx
mov dword [ebp - 0xb4], 0x30
push eax
je 0x45b0ba
mov dword [ebp - 0xb0], 0x10
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], 0x104
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
jne 0x45b22c
mov dword [ebx], eax
push esi
call fcn.004110b6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0xb0], 1
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
push esi
test eax, eax
je 0x45af86
call fcn.004110b6
mov ecx, dword [ebp - 0xa8]
mov dl, cl
and dl, 3
movsx eax, dl
add esp, 4
neg eax
sbb eax, eax
and eax, 0x40
add eax, 0x40
mov dword [ebx], ecx
test ecx, 0x8080
je 0x45b102
or eax, 0x100
test cl, 8
je 0x45b10c
or eax, 1
jmp 0x45b10f
or eax, 4
test ecx, 0x1000
je 0x45b11c
or eax, 0x200
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
push 0x110a
push esi
mov dword [ebx], 0
call edi
test eax, eax
je 0x45b1b6
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 4
je 0x45b19f
push 0x2000
call fcn.00412ac9
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0x113e
push esi
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0xfff
call edi
test eax, eax
jne 0x45b532
push ebx
call fcn.004110b6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0x113e
push esi
call edi
test eax, eax
je 0x45b1b6
mov edx, dword [ebp - 0x30]
mov dword [ebx], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0xc]
push 0xfffffffffffffff0
push ecx
mov dword [ebp - 0x50], eax
mov dword [ebx], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp byte [ebp + 0x10], 0
mov esi, eax
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x48], 0xf000
je 0x45b237
push 0x2000
call fcn.00412ac9
add esp, 4
lea edx, [ebp - 0x54]
push edx
push 0
mov esi, eax
mov eax, dword [edi + 0x30]
push 0x113e
push eax
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0xfff
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x45b0a6
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x30]
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0x113e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x45b28b
mov eax, dword [ebp - 0x4c]
test esi, 0x100
je 0x45b26d
mov ecx, eax
shr ecx, 0xc
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 4
mov dword [ebx], ecx
test al, 2
je 0x45b277
or dword [ebx], 0x100
test al, 0x20
je 0x45b281
or dword [ebx], 0x400
test al, 0x10
je 0x45b28b
or dword [ebx], 0x200
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
push 0xffffffffffffffff
push 0x100c
push esi
call edi
push 0x28
lea edx, [ebp - 0x2c]
push 0
push edx
mov dword [ebx], eax
call fcn.00412a00
mov eax, dword [ebx]
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x104b
push esi
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], eax
call edi
neg eax
sbb eax, eax
and eax, dword [ebp - 0xc]
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [edi + 0x30]
push 0xffffffffffffffec
push edx
mov dword [ebx], 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x28
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00412a00
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
push 0xffffffffffffffff
push 0x1053
push eax
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x78], ecx
call esi
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x45ae3e
test byte [ebp + 0xc], 4
je 0x45b38a
cmp byte [ebp + 0x10], 0
je 0x45b38a
mov edx, dword [edi + 0x30]
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x104b
push edx
mov dword [ebp - 0x2c], 8
mov dword [ebp - 0x1c], 0xf000
call esi
test eax, eax
je 0x45b37f
mov eax, dword [ebp - 0x20]
shr eax, 0xc
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x2000
call fcn.00412ac9
xor ecx, ecx
add esp, 4
xor esi, esi
mov dword [ebp + 0x10], eax
mov ebx, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x14], 0xfff
cmp cx, word [edi + 0x8c]
jge 0x45b421
mov eax, dword [edi + 0x30]
lea edx, [ebp - 0x2c]
push edx
push 0
push 0x104b
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call fcn.00412981
mov ecx, 0xffe
sub ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x45aecc
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.00412981
mov cx, word [0x4b96b4]
lea eax, [ebx + eax*2]
add esp, 4
xor edx, edx
push eax
mov word [eax], cx
mov word [eax + 2], dx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movsx eax, word [edi + 0x8c]
inc esi
cmp esi, eax
jl 0x45b3b7
mov edx, dword [edi + 0x30]
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x104b
push edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [edi + 0x68]
push esi
call fcn.00447b37
test al, al
je 0x45b49a
push esi
call fcn.00457cdb
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ac9
add esp, 4
push esi
mov edi, eax
call fcn.00457cdb
inc eax
push eax
push esi
call fcn.00457d36
push eax
push edi
call fcn.004371c9
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.0040ca60
mov dword [ebx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x64]
push eax
push 0
push 0x1001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je case.0x45ae76.12
push 0x16
call fcn.00412ac9
movzx ecx, word [ebp - 0x5e]
movzx edx, word [ebp - 0x62]
push ecx
mov esi, eax
movzx eax, word [ebp - 0x64]
push edx
push eax
push str._d__02d__02d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push esi
call ebx
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412ac9
add esp, 4
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc