Function at 0x4545e7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 8], 0
jne 0x45463f
push 0x63
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call fcn.004d58b6
mov edi, eax
cmp edi, 1
jne 0x454638
cmp dword [esi + 8], 1
je 0x454638
cmp dword [esi + 8], 2
je 0x454638
cmp dword [esi + 8], 3
je 0x454638
push 6
push dword [ebp + 0x1c]
push esi
call fcn.00467663
jmp 0x454fc8
mov eax, edi
jmp 0x454fc8
cmp dword [esi + 0x34], 0
jne 0x45464f
mov eax, 2
jmp 0x454fc8
cmp dword [esi + 8], 2
jl 0x454668
mov edx, dword [esi + 0x34]
cmp dword [edx + 0x34], 0
jne 0x454668
mov eax, 2
jmp 0x454fc8
cmp dword [esi + 8], 3
jne 0x454684
mov edx, dword [esi + 0x34]
mov ecx, dword [edx + 0x34]
cmp dword [ecx + 0x34], 0
jne 0x454684
mov eax, 2
jmp 0x454fc8
mov edx, dword [esi + 0x34]
cmp dword [edx + 0x1c], 1
je 0x454697
mov eax, 1
jmp 0x454fc8
cmp dword [esi + 8], 2
jl 0x4546b3
mov edx, dword [esi + 0x34]
mov ecx, dword [edx + 0x34]
cmp dword [ecx + 0x1c], 1
je 0x4546b3
mov eax, 1
jmp 0x454fc8
cmp dword [esi + 8], 3
jne 0x4546d2
mov edx, dword [esi + 0x34]
mov ecx, dword [edx + 0x34]
mov eax, dword [ecx + 0x34]
cmp dword [eax + 0x1c], 1
je 0x4546d2
mov eax, 1
jmp 0x454fc8
mov edx, dword [esi + 0x34]
cmp dword [edx + 0xc], 0
jne 0x454fb8
cmp dword [esi + 8], 2
jl 0x4546f5
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + 0x34]
cmp dword [eax + 0xc], 0
jne 0x454fb8
mov eax, dword [esi + 8]
cmp eax, 3
jne 0x454710
mov edx, dword [esi + 0x34]
mov ecx, dword [edx + 0x34]
mov edx, dword [ecx + 0x34]
cmp dword [edx + 0xc], 0
jne 0x454fb8
dec eax
jne 0x454cd2
mov eax, dword [esi + 0x34]
push dword [eax]
call fcn.004d5474
test eax, eax
je 0x454734
mov ecx, dword [esi + 0x34]
push dword [ecx]
call fcn.00542dbc
pop ecx
mov edi, eax
jmp 0x454739
mov edi, 0x270f
test edi, edi
jg 0x45476a
xor edi, edi
mov ebx, dword [0x54eaf4]
test ebx, ebx
je 0x454754
inc edi
mov ebx, dword [ebx + 0x1004]
test ebx, ebx
jne 0x454749
push edi
push 0x54f04b
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
mov ebx, dword [0x54eaf4]
test ebx, ebx
je 0x4547a5
cmp edi, 0x270f
jne 0x454792
push ebx
mov eax, dword [esi + 0x34]
push dword [eax]
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x45479b
xor edi, edi
jmp 0x4547a5
dec edi
test edi, edi
jg 0x45479b
xor edi, edi
jmp 0x4547a5
mov ebx, dword [ebx + 0x1004]
test ebx, ebx
jne 0x454774
test edi, edi
jne 0x454fb8
test ebx, ebx
je 0x454fb8
cmp dword [esi + 0x10], 0
je 0x454ca7
push 0x2e
push dword [esi]
call fcn.005398a0
add esp, 8
mov edi, eax
test eax, eax
je 0x454ca7
push 0x54f04f
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x45480e
lea edx, [ebp - 0x10]
push edx
push dword [ebx + 0xc8]
call sub.USER32.dll_GetWindowRect
push dword [ebp - 0x10]
push 0x54f053
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push 0x54f057
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454847
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0xc8]
call sub.USER32.dll_GetWindowRect
push dword [ebp - 0xc]
push 0x54f05b
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push 0x54f05f
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454884
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0xc8]
call sub.USER32.dll_GetWindowRect
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
push edx
push 0x54f063
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push 0x54f067
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x4548c1
lea ecx, [ebp - 0x10]
push ecx
push dword [ebx + 0xc8]
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push 0x54f06b
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push 0x54f06f
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x4548fe
lea edx, [ebp - 0x10]
push edx
push dword [ebx + 0xc8]
call sub.USER32.dll_GetClientRect
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
push 0x54f074
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push 0x54f078
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x45493b
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 0xc8]
call sub.USER32.dll_GetClientRect
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
push 0x54f07d
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push 0x54f081
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454965
push 0x180
push dword [ebp + 0x14]
push dword [ebx + 0xc8]
call sub.USER32.dll_GetWindowTextA
jmp 0x454fb8
push str..modal
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x4549ad
cmp dword [ebx + 0x158], 0
je 0x454996
mov ecx, dword [ebp + 0x14]
push esi
mov esi, 0x54f091
mov edi, ecx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x454fb8
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x54f098
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x454fb8
push str..table
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x4549ed
add ebx, 0x64
mov eax, dword [ebp + 0x14]
push esi
mov edi, ebx
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x454fb8
push 0x54f0a8
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454a33
mov eax, dword [ebx + 0xe0]
test eax, eax
je 0x454fb8
mov edi, eax
add edi, 0xffffe890
test edi, edi
jle 0x454fb8
push edi
push 0x54f0ad
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push str..cancel
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454a79
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x454fb8
mov edi, eax
add edi, 0xffffe890
test edi, edi
jle 0x454fb8
push edi
push 0x54f0ba
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push str..result
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454abf
mov eax, dword [ebx + 0xe8]
test eax, eax
je 0x454fb8
mov edi, eax
add edi, 0xffffe890
test edi, edi
jle 0x454fb8
push edi
push 0x54f0c7
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push str..focus
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454b6c
call sub.USER32.dll_GetFocus
mov dword [0x5706a0], eax
mov edi, dword [0x5706a0]
test edi, edi
je 0x454fb8
push edi
call sub.USER32.dll_GetParent
cmp eax, dword [ebx + 0xc8]
jne 0x454fb8
push dword [0x5706a0]
call sub.USER32.dll_GetDlgCtrlID
mov edi, eax
test edi, edi
je 0x454fb8
cmp dword [ebx + 0x1a8], 0
je 0x454b50
cmp edi, 0x68
jne 0x454b50
imul eax, dword [ebx + 0xfdc], 0x17
push dword [ebx + eax*4 + 0x1a8]
call sub.USER32.dll_GetDlgCtrlID
add eax, 0xffffe890
push eax
push 0x54f0d3
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
add edi, 0xffffe890
push edi
push 0x54f0d7
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push str..active
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454c29
call sub.USER32.dll_GetFocus
mov dword [0x5706a4], eax
mov edi, dword [0x5706a4]
test edi, edi
je 0x454bba
push edi
call sub.USER32.dll_GetParent
cmp eax, dword [ebx + 0xc8]
jne 0x454bba
mov eax, dword [ebp + 0x14]
push esi
mov esi, 0x54f0e4
mov edi, eax
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x454fb8
mov eax, dword [0x5706a4]
test eax, eax
je 0x454be1
cmp eax, dword [ebx + 0xc8]
jne 0x454be1
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x54f0eb
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x454fb8
call sub.USER32.dll_GetActiveWindow
mov dword [0x5706a4], eax
mov eax, dword [0x5706a4]
test eax, eax
je 0x454c12
cmp eax, dword [ebx + 0xc8]
jne 0x454c12
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x54f0f2
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x454fb8
mov edx, dword [ebp + 0x14]
push esi
mov esi, 0x54f0f9
mov edi, edx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
jmp 0x454fb8
push str..tab
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454c76
cmp dword [ebx + 0x1a8], 0
je 0x454fb8
imul edx, dword [ebx + 0xfdc], 0x17
push dword [ebx + edx*4 + 0x1a8]
call sub.USER32.dll_GetDlgCtrlID
add eax, 0xffffe890
push eax
push 0x54f107
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
push 0x54f10b
push edi
call fcn.0053977c
add esp, 8
test eax, eax
jne 0x454fb8
push dword [ebx + 0xc8]
push 0x54f112
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x454fb8
mov ecx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x454fb8
cmp dword [ebp + 0x20], 0
je 0x454cee
push 0x5720e8
push 0x67f
call fcn.0041c35b
xor eax, eax
jmp 0x454fc8
mov edx, dword [esi + 0x34]
push dword [edx]
call fcn.005395b8
pop ecx
cmp eax, 0x5a
jbe 0x454d07
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
mov byte [eax + 0x5a], 0
mov edx, dword [esi + 0x34]
push dword [edx]
call fcn.004d5474
test eax, eax
je 0x454d3b
mov ecx, dword [esi + 0x34]
push dword [ecx]
push 0
push 0x680
call fcn.0041c35b
push eax
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x454fc8
mov edx, dword [esi + 0x34]
push dword [edx]
call fcn.0044cc89
mov ebx, eax
test ebx, ebx
je 0x454d71
mov eax, dword [esi + 0x34]
push dword [eax]
push 0
push 0x681
call fcn.0041c35b
push eax
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x454fc8
call fcn.0044c938
mov ebx, eax
test ebx, ebx
jne 0x454d8c
push 8
push dword [ebp + 0x1c]
push esi
call fcn.00467663
jmp 0x454fc8
cmp dword [esi + 8], 1
jne 0x454de7
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
push esi
mov edi, edx
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebx + 0x64]
mov edx, dword [esi + 0x34]
mov ecx, dword [edx]
push esi
mov esi, eax
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x454e62
cmp dword [esi + 8], 2
jl 0x454e62
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
push esi
mov edi, edx
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esi + 0x34]
mov edx, dword [eax + 0x34]
push dword [edx]
call fcn.005395b8
pop ecx
cmp eax, 0x5a
jbe 0x454e34
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + 0x34]
mov edx, dword [eax]
mov byte [edx + 0x5a], 0
lea ecx, [ebx + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [eax + 0x34]
mov eax, dword [edx]
push esi
mov esi, ecx
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
mov dword [ebx + 0xc8], eax
mov edx, dword [ebp + 0x24]
mov dword [ebx + 0x170], edx
mov ecx, dword [ebp + 0x28]
mov dword [ebx + 0xffc], ecx
push ebx
call fcn.0044e4fd
test eax, eax
jne 0x454eac
push ebx
call fcn.0044cac7
cmp byte [0x5720e8], 0
jne 0x454ea5
push 6
push dword [ebp + 0x1c]
push esi
call fcn.00467663
jmp 0x454fc8
xor eax, eax
jmp 0x454fc8
cmp dword [esi + 8], 3
jne 0x454f4b
mov edx, dword [esi + 0x34]
mov ecx, dword [edx + 0x34]
mov eax, dword [ecx + 0x34]
push dword [eax]
call fcn.00542dbc
pop ecx
mov edi, eax
cmp edi, 0xffffffff
jne 0x454ed8
call sub.USER32.dll_GetDesktopWindow
mov dword [ebp + 8], eax
jmp 0x454f4b
cmp edi, 0xfffffffe
jne 0x454ee7
mov eax, dword [0x55b3c8]
mov dword [ebp + 8], eax
jmp 0x454f4b
cmp edi, 0xfffffffd
jne 0x454f06
mov edx, dword [0x55b3d4]
mov dword [ebp + 8], edx
cmp dword [ebp + 8], 0
jne 0x454f4b
mov ecx, dword [0x55b3c8]
mov dword [ebp + 8], ecx
jmp 0x454f4b
cmp edi, 0xfffffffc
jne 0x454f32
call sub.USER32.dll_GetActiveWindow
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x454f21
mov eax, dword [0x55b3d4]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x454f4b
mov edx, dword [0x55b3c8]
mov dword [ebp + 8], edx
jmp 0x454f4b
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + 0x34]
mov edx, dword [eax + 0x34]
push dword [edx]
call fcn.005160e8
test eax, eax
je 0x454f4b
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0xcc], eax
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0xec], edx
push ebx
call fcn.0044e376
mov edi, eax
test edi, edi
jg 0x454f9b
push ebx
call fcn.0044cac7
cmp byte [0x5720e8], 0
jne 0x454f97
mov eax, dword [esi + 0x34]
push dword [eax]
push 0
push 0x682
call fcn.0041c35b
push eax
push 0x5720e8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x454fc8
push ebx
call fcn.0044cac7
jmp 0x454fb8
push dword [esi + 0x34]
mov edx, dword [ebp + 0xc]
push dword [edx]
call fcn.004b103a
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
dec dword [esi + 8]
cmp dword [esi + 8], 0
jg 0x454fa3
xor eax, eax
mov dword [esi + 8], eax
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24