Function at 0x460700
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
mov eax, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
push ebp
push esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
jne 0x46076f
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [edx]
push 0x63
push esi
push ecx
push ebx
mov ecx, eax
call fcn.004ed570
mov ebp, 1
cmp eax, ebp
jne 0x461046
mov ecx, dword [ebx + 8]
cmp ecx, ebp
je 0x461046
cmp ecx, 2
je 0x461046
cmp ecx, 3
je 0x461046
push 6
mov edx, esi
mov ecx, ebx
call fcn.004764c0
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x460791
cmp ecx, 2
jl 0x460782
mov edx, dword [eax + 0x40]
test edx, edx
je 0x460791
cmp ecx, 3
jne 0x46079f
mov edx, dword [eax + 0x40]
mov esi, dword [edx + 0x40]
test esi, esi
jne 0x46079f
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x18
ret 0x1c
mov edx, dword [eax + 0x1c]
mov ebp, 1
cmp edx, ebp
jne 0x4607c8
cmp ecx, 2
jl 0x4607b8
mov edx, dword [eax + 0x40]
cmp dword [edx + 0x1c], ebp
jne 0x4607c8
cmp ecx, 3
jne 0x4607d3
mov edx, dword [eax + 0x40]
mov edx, dword [edx + 0x40]
cmp dword [edx + 0x1c], ebp
je 0x4607d3
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov edx, dword [eax + 0xc]
test edx, edx
push edi
jne 0x461012
cmp ecx, 2
jl 0x4607f2
mov edx, dword [eax + 0x40]
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x461012
cmp ecx, 3
jne 0x460808
mov edx, dword [eax + 0x40]
mov edx, dword [edx + 0x40]
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x461012
cmp ecx, ebp
jne 0x460d8f
mov ecx, dword [eax]
call fcn.004ed210
test eax, eax
je 0x4608cf
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
push ecx
call fcn.00563a6c
mov edi, eax
add esp, 4
cmp edi, 0x270e
jle 0x4608d9
mov edi, 0x270e
mov esi, dword [0x59427c]
test esi, esi
je 0x461012
mov edi, edi
cmp edi, 0x270f
jne 0x460914
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
push esi
push ecx
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x46091d
test esi, esi
je 0x461012
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x460d76
mov edx, dword [ebx]
push 0x2e
push edx
call fcn.00563c90
mov edi, eax
add esp, 8
test edi, edi
je 0x460d76
push 0x5752dc
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460930
mov ecx, dword [esi + 0xc8]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x18]
push edx
jmp 0x460c33
mov edi, 0x270f
jmp 0x460840
test edi, edi
jg 0x460840
mov eax, dword [0x59427c]
xor ecx, ecx
test eax, eax
je 0x4608fb
lea esp, [esp]
mov eax, dword [eax + 0x1018]
inc ecx
test eax, eax
jne 0x4608f0
mov edx, dword [esp + 0x30]
push ecx
push 0x5748f8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
dec edi
test edi, edi
jle 0x460873
mov esi, dword [esi + 0x1018]
test esi, esi
jne 0x460850
jmp 0x461012
push 0x5752d8
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460971
mov edx, dword [esi + 0xc8]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
push eax
push 0x5748f8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push 0x5752d4
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x4609b8
mov eax, dword [esi + 0xc8]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
sub ecx, edi
push ecx
push 0x5748f8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push 0x5752d0
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x4609ea
mov ecx, dword [esi + 0xc8]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
push edx
jmp 0x460c33
push 0x5773d8
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460a31
mov edx, dword [esi + 0xc8]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
sub eax, ebp
push eax
push 0x5748f8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push 0x5773d0
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460a78
mov eax, dword [esi + 0xc8]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
sub ecx, edi
push ecx
push 0x5748f8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push str..title
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460aa6
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0xc8]
push 0x180
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x461012
push str..modal
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460acf
mov eax, dword [esi + 0x158]
test eax, eax
mov edx, dword [esp + 0x30]
je 0x460ccd
jmp 0x460cb2
push str..table
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460aff
mov edx, dword [esp + 0x30]
lea eax, [esi + 0x64]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x460af0
jmp 0x461012
push 0x5773b0
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460b46
mov esi, dword [esi + 0xe0]
test esi, esi
je 0x461012
lea eax, [esi - 0x1770]
test eax, eax
jle 0x461012
mov ecx, dword [esp + 0x30]
push eax
push 0x5748f8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push str..cancel
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460b7a
mov esi, dword [esi + 0xe4]
test esi, esi
je 0x461012
lea eax, [esi - 0x1770]
test eax, eax
jle 0x461012
push eax
jmp 0x460d5e
push str..result
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460bc1
mov esi, dword [esi + 0xe8]
test esi, esi
je 0x461012
lea eax, [esi - 0x1770]
test eax, eax
jle 0x461012
push eax
mov eax, dword [esp + 0x34]
push 0x5748f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push str..focus
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460c69
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x461012
push edi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, dword [esi + 0xc8]
jne 0x461012
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
call edi
test eax, eax
je 0x461012
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x460c4b
cmp eax, 0x65
jne 0x460c4b
mov ecx, dword [esi + 0xfdc]
imul ecx, ecx, 0x5c
mov edx, dword [ecx + esi + 0x1a8]
push edx
call edi
sub eax, 0x1770
push eax
mov eax, dword [esp + 0x34]
push 0x5748f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
mov ecx, dword [esp + 0x30]
add eax, 0xffffe890
push eax
push 0x5748f8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push str..active
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460cec
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x460c9c
mov ebp, dword [esi + 0xc8]
push edi
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, ebp
je 0x460cae
cmp edi, ebp
je 0x460cae
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
je 0x460cc9
cmp eax, dword [esi + 0xc8]
jne 0x460cc9
mov edx, dword [esp + 0x30]
mov eax, dword [str._true]
mov dword [edx], eax
mov cx, word [0x5748d4]
mov word [edx + 4], cx
jmp 0x461012
mov edx, dword [esp + 0x30]
mov eax, dword [str._false]
mov dword [edx], eax
mov cx, word [0x5748c4]
mov word [edx + 4], cx
mov al, byte [0x5748c6]
mov byte [edx + 6], al
jmp 0x461012
push str..tab
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x460d41
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x461012
mov ecx, dword [esi + 0xfdc]
imul ecx, ecx, 0x5c
mov edx, dword [ecx + esi + 0x1a8]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
sub eax, 0x1770
push eax
mov eax, dword [esp + 0x34]
push 0x5748f8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
push str..hwnd
push edi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x461012
mov ecx, dword [esi + 0xc8]
push ecx
mov edx, dword [esp + 0x34]
push 0x5748f8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x461012
mov edx, dword [esp + 0x30]
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x460d80
jmp 0x461012
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x460db2
mov edx, 0x595d60
mov ecx, 0x67f
call fcn.0041c9e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x1c
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460dc0
sub eax, esi
cmp eax, 0x5a
jbe 0x460dd1
mov byte [edx + 0x5a], cl
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call fcn.004ed210
test eax, eax
je 0x460e0c
mov ecx, dword [ebx + 0x40]
mov edx, dword [ecx]
push edx
xor edx, edx
mov ecx, 0x680
call fcn.0041c9e0
push eax
push 0x595d60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x1c
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
call fcn.00456fb0
test eax, eax
je 0x460e47
mov ecx, dword [ebx + 0x40]
mov edx, dword [ecx]
push edx
xor edx, edx
mov ecx, 0x681
call fcn.0041c9e0
push eax
push 0x595d60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x1c
call fcn.00456de0
mov edi, eax
test edi, edi
jne 0x460e69
mov edx, dword [esp + 0x38]
push 8
mov ecx, ebx
call fcn.004764c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov eax, dword [ebx + 8]
cmp eax, ebp
jne 0x460e9c
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
mov edx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x460e77
mov ecx, dword [ebx + 0x40]
mov ecx, dword [ecx]
lea edx, [edi + 0x64]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x460e90
jmp 0x460eea
cmp eax, 2
jl 0x460eea
mov edx, dword [ebx + 0x40]
mov ecx, dword [edx]
mov edx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x460ea8
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460ec0
sub eax, esi
cmp eax, 0x5a
jbe 0x460ed1
mov byte [edx + 0x5a], cl
mov edx, dword [ebx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax]
lea edx, [edi + 0x64]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x460ee0
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [edi + 0xffc], ecx
mov ecx, edi
mov dword [edi + 0xc8], 0
mov dword [edi + 0x1004], esi
call fcn.004588d0
test eax, eax
jne 0x460f3e
mov ecx, edi
call fcn.0045ebf0
mov al, byte [0x595d60]
test al, al
jne 0x460da6
mov edx, dword [esp + 0x38]
push 6
mov ecx, ebx
call fcn.004764c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
cmp dword [ebx + 8], 3
jne 0x460fb1
mov edx, dword [ebx + 0x40]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
push edx
call fcn.00563a6c
add esp, 4
cmp eax, 0xffffffff
jne 0x460f65
call dword [sym.imp.USER32.dll_GetDesktopWindow]
jmp 0x460fb5
cmp eax, 0xfffffffe
jne 0x460f71
mov eax, dword [0x5a1b00]
jmp 0x460fb5
cmp eax, 0xfffffffd
jne 0x460f86
mov eax, dword [0x5a1b0c]
test eax, eax
jne 0x460fb5
mov eax, dword [0x5a1b00]
jmp 0x460fb5
cmp eax, 0xfffffffc
jne 0x460f97
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
jne 0x460fb5
jmp 0x460f76
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x40]
mov eax, dword [ecx + 0x40]
mov ecx, dword [eax]
mov edx, esi
call fcn.004dc5a0
test eax, eax
je 0x460fb1
mov eax, dword [eax]
jmp 0x460fb5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [edi + 0xec], ecx
mov ecx, edi
mov dword [edi + 0xcc], eax
call fcn.0045fd40
test eax, eax
mov ecx, edi
jg 0x46100d
call fcn.0045ebf0
mov al, byte [0x595d60]
test al, al
jne 0x461001
mov edx, dword [ebx + 0x40]
mov eax, dword [edx]
push eax
xor edx, edx
mov ecx, 0x682
call fcn.0041c9e0
push eax
push 0x595d60
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x1c
call fcn.0045ebf0
mov eax, dword [ebx + 8]
test eax, eax
jle 0x461039
mov esi, dword [esp + 0x14]
lea ecx, [ecx]
mov edx, dword [ebx + 0x40]
mov ecx, dword [esi]
call fcn.004c2730
mov dword [esi], eax
mov ecx, dword [ebx + 8]
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebx + 8], ecx
jg 0x461020
mov dword [ebx + 8], 0
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c