Function at 0x45485e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.0045da90
mov al, byte [0x45fc38]
push ebx
push esi
mov dword [ebp - 0xc], ecx
push edi
mov byte [ebp - 0x838], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x837]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x4989c8
stosb byte es:[edi], al
call fcn.00454565
lea ecx, [ebp - 0x838]
push 0x800
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x838]
push eax
call fcn.004272ff
test eax, eax
pop ecx
jne 0x454b8b
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
push 0x2f
pop ebx
lea eax, [ebp - 0x838]
push ebx
push eax
call esi
pop ecx
mov edx, eax
pop ecx
lea edi, [ebp - 0x838]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x839]
cmp edx, eax
jne 0x454906
and byte [edx], 0
lea eax, [ebp - 0x838]
push ebx
push eax
call esi
pop ecx
mov edx, eax
pop ecx
xor esi, esi
cmp edx, esi
je 0x454965
lea eax, [ebp - 0x838]
cmp edx, eax
je 0x454965
cmp byte [edx - 1], bl
je 0x454965
and byte [edx + 1], 0
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetFocus]
lea edi, [ebp - 0x838]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ecx
push 0xb1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0xc]
push 0x3001
jmp 0x454b86
lea edi, [ebp - 0x838]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x839], bl
lea eax, [ebp + ecx - 0x839]
jne 0x454988
and byte [eax], 0
lea eax, [ebp - 0x838]
push 0x410e9c
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
test eax, eax
jne 0x454b8b
mov eax, 0x410e94
mov ebx, 0x40aea8
mov ecx, eax
mov dword [ebp - 0x38], eax
test ecx, ecx
mov dword [ebp - 0x34], 0x410e8c
mov dword [ebp - 0x30], 0x40aef4
mov dword [ebp - 0x2c], 0x40aeec
mov dword [ebp - 0x28], 0x40aee4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x40ab7c
mov dword [ebp - 0x18], 0x40aea0
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
je 0x454b8b
lea esi, [ebp - 0x38]
push eax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, eax
pop ecx
test edx, edx
pop ecx
je 0x454a27
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx], al
jne 0x454a27
mov eax, edx
lea ecx, [ebp - 0x838]
sub eax, ecx
test eax, eax
jg 0x454a39
mov eax, dword [esi + 4]
inc dword [ebp - 8]
add esi, 4
test eax, eax
jne 0x4549f2
jmp 0x454b8b
and byte [edx], 0
lea eax, [ebp - 0x838]
push 0x2e
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
je 0x454b8b
and byte [ebp - 0x1038], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1037]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, ebx
test eax, eax
je 0x454ade
mov edx, ebx
lea esi, [ebp - 0x20]
or ebx, 0xffffffff
mov edi, edx
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x838]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x454ab3
mov edx, dword [esi + 4]
inc dword [ebp - 4]
add esi, 4
test edx, edx
jne 0x454a80
jmp 0x454ae1
mov eax, dword [ebp - 4]
mov ecx, ebx
lea edx, [ebp - 0x1038]
mov edi, dword [ebp + eax*4 - 0x20]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x454ae1
or ebx, 0xffffffff
mov edi, 0x410e88
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x1038]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x1038]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x10]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov ecx, edx
and ecx, 3
lea edx, [ebp - 0x1038]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + eax*4 - 0x38]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x1038]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
push dword [esi + 0xb20]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x3001
mov ecx, esi
call fcn.0044efac
pop edi
pop esi
pop ebx
leave
ret