Function at 0x407c0a
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], ebx
cmp eax, edi
je 0x407eec
push 0xd
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, ebx
call fcn.004081b9
test al, al
jne 0x407c3b
mov byte [esp + 0x38], 1
cmp dword [ebx + 0x64], edi
push esi
mov dword [esp + 0x10], edi
jle 0x407e8b
push ebp
jmp 0x407c4e
xor edi, edi
push dword [esp + 0x14]
lea ecx, [ebx + 0x58]
call fcn.0041fb60
mov esi, eax
mov ecx, ebx
push dword [esi + 0xc]
call fcn.004072e4
mov ebp, eax
cmp ebp, edi
je 0x407e77
mov ecx, dword [ebp + 0x50]
cmp ecx, edi
je 0x407e77
mov eax, dword [ebp + 8]
cmp eax, 3
je 0x407d5b
cmp eax, 4
je 0x407d5b
cmp eax, 5
jne 0x407cf5
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
inc edi
push edi
call fcn.00426169
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x407cbd
mov ecx, 0x47fa24
call fcn.0041decc
push eax
call fcn.0041eaf1
pop ecx
cmp edi, 1
jne 0x407cc7
and byte [ebx], 0
jmp 0x407cd2
push edi
push ebx
push dword [ebp + 0x50]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
lea ecx, [esi + 0x10]
call fcn.0041d0c0
push ebx
call fcn.00426353
push ebx
mov dword [esi + 0x1c], eax
call fcn.0042615e
mov ebx, dword [esp + 0x20]
pop ecx
pop ecx
jmp 0x407d9c
cmp eax, 0xd
jne 0x407d1c
lea edi, [esi + 0x10]
push edi
push ecx
call fcn.00406e25
pop ecx
pop ecx
mov ecx, edi
call fcn.0041decc
push eax
call fcn.004263de
pop ecx
mov dword [esi + 0x1c], eax
jmp 0x407d9c
cmp eax, 7
je 0x407d26
cmp eax, 8
jne 0x407d9c
xor edx, edx
cmp eax, 7
setne dl
dec edx
push edi
and edx, 0x41
push edi
add edx, 0x147
push edx
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x1c]
push 0xa
push ecx
push eax
mov dword [esi + 0x1c], eax
call fcn.00428c46
add esp, 0xc
lea eax, [esp + 0x1c]
jmp 0x407d93
push edi
push edi
push 0xf0
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
pop ecx
cmp eax, ecx
je 0x407d7a
cmp eax, 2
je 0x407d7a
mov dword [esi + 0x1c], edi
jmp 0x407d7d
mov dword [esi + 0x1c], ecx
lea eax, [esp + 0x2c]
push 0xa
push eax
push dword [esi + 0x1c]
call fcn.00428cf9
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea ecx, [esi + 0x10]
call fcn.0041d0c0
push 0x58
call fcn.00426169
test eax, eax
pop ecx
je 0x407db3
mov ecx, eax
call fcn.00407ef7
mov edi, eax
jmp 0x407db5
xor edi, edi
test edi, edi
jne 0x407dca
mov ecx, 0x47fa24
call fcn.0041decc
push eax
call fcn.0041eaf1
pop ecx
push esi
mov ecx, edi
call fcn.0041d12e
or dword [edi + 0x10], 0xffffffff
lea ebp, [esi + 0x10]
push ebp
lea ecx, [edi + 0x48]
mov dword [edi + 0xc], 1
call fcn.0041d12e
mov eax, dword [esi + 0x1c]
test esi, esi
mov dword [edi + 0x54], eax
je 0x407e08
mov ecx, ebp
call fcn.0041d0a9
mov ecx, esi
call fcn.0041d0a9
push esi
call fcn.0042615e
pop ecx
and dword [esp + 0x10], 0
cmp dword [0x47f5cc], 0
jle 0x407e68
push dword [esp + 0x10]
mov esi, 0x47f5c0
mov ecx, esi
call fcn.0041fb60
mov ebp, eax
push 1
push edi
mov ecx, ebp
call fcn.0041d30f
test al, al
jne 0x407e48
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x47f5cc]
jl 0x407e16
jmp 0x407e6d
test ebp, ebp
je 0x407e5a
mov ecx, ebp
call fcn.00407f2b
push ebp
call fcn.0042615e
pop ecx
push edi
mov ecx, esi
push dword [esp + 0x14]
call fcn.0041fc07
jmp 0x407e77
mov esi, 0x47f5c0
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.0041fb7a
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [ebx + 0x64]
jl 0x407c4c
xor edi, edi
pop ebp
lea ecx, [ebx + 0x58]
call fcn.0041fc21
cmp dword [0x47f200], ebx
jne 0x407ea1
mov dword [0x47f200], edi
xor esi, esi
cmp dword [ebx + 0x7c], edi
jle 0x407ed6
lea edi, [ebx + 0x70]
push esi
mov ecx, edi
call fcn.0041fb60
mov ecx, dword [eax + 8]
cmp ecx, 2
je 0x407ec5
cmp ecx, 3
je 0x407ec5
cmp ecx, 4
jne 0x407ed0
push 0
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, dword [ebx + 0x7c]
jl 0x407eab
cmp byte [esp + 0x3c], 0
mov dword [0x47f050], ebx
pop esi
je 0x407eec
push 0
call fcn.00407f5f
pop ecx
push 1
pop eax
pop edi
pop ebx
add esp, 0x2c
ret 4