Function at 0x417508
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x417510
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4178df
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x421a34]
test bl, bl
jne 0x41788f
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
mov edx, 0x4178f8
mov eax, 0x417908
call fcn.004151c8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00415d74
mov edx, dword [ebp - 0x10]
pop eax
call fcn.00404800
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00414980
mov eax, dword [ebp - 8]
mov ecx, 0x12
mov edx, 1
call fcn.00404a24
mov eax, dword [ebp - 4]
call fcn.004049c4
push eax
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov esi, eax
cmp esi, 0x10
seta bl
test bl, bl
je 0x4175b2
push esi
call sub.kernel32.dll_CloseHandle
mov dword [0x421a38], 1
jmp 0x41788f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
call fcn.00415d74
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x4178f8
mov eax, 0x417908
call fcn.004151c8
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.00404800
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00414980
mov eax, dword [ebp - 0x14]
mov ecx, 0x10
mov edx, 1
call fcn.00404a24
mov eax, dword [ebp - 4]
call fcn.004049c4
push eax
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov esi, eax
cmp esi, 0x10
seta bl
test bl, bl
je 0x41762d
push esi
call sub.kernel32.dll_CloseHandle
mov dword [0x421a38], 2
jmp 0x41788f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
call fcn.00415d74
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
mov edx, 0x4178f8
mov eax, 0x417930
call fcn.004151c8
mov edx, dword [ebp - 0x28]
pop eax
call fcn.00404800
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00414980
mov eax, dword [ebp - 0x20]
mov ecx, 0x10
mov edx, 1
call fcn.00404a24
mov eax, dword [ebp - 4]
call fcn.004049c4
push eax
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov esi, eax
cmp esi, 0x10
seta bl
test bl, bl
je 0x4176a8
push esi
call sub.kernel32.dll_CloseHandle
mov dword [0x421a38], 3
jmp 0x41788f
lea ecx, [ebp - 4]
mov edx, 0x4178f8
mov eax, 0x417930
call fcn.004151c8
mov eax, dword [ebp - 4]
call fcn.004049c4
push eax
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov esi, eax
cmp esi, 0x10
seta bl
test bl, bl
je 0x4176ed
push esi
call sub.kernel32.dll_CloseHandle
mov dword [0x421a38], 4
jmp 0x41788f
lea ecx, [ebp - 4]
mov edx, 0x4178f8
mov eax, 0x41794c
call fcn.004151c8
mov eax, dword [ebp - 4]
call fcn.004049c4
push eax
push 0
push 2
call sub.kernel32.dll_OpenFileMappingA
mov esi, eax
cmp esi, 0x10
seta bl
test bl, bl
je 0x417732
push esi
call sub.kernel32.dll_CloseHandle
mov dword [0x421a38], 5
jmp 0x41788f
lea ecx, [ebp - 4]
mov edx, 0x4178f8
mov eax, 0x417980
call fcn.004151c8
push 0
mov eax, dword [ebp - 4]
call fcn.004049c4
push eax
call sub.user32.dll_FindWindowA
mov esi, eax
cmp esi, 0x10
jbe 0x41782a
push 0
lea ecx, [ebp - 0x2c]
mov edx, 0x4178f8
mov eax, 0x41799c
call fcn.004151c8
mov eax, dword [ebp - 0x2c]
call fcn.004049c4
push eax
push 0
push esi
call sub.user32.dll_FindWindowExA
mov esi, eax
cmp esi, 0x10
jbe 0x41782a
mov eax, pe_nt_image_headers32
call fcn.00402dd8
mov edi, eax
push pe_nt_image_headers32
push edi
push esi
call sub.user32.dll_GetWindowTextA
lea ecx, [ebp - 0x34]
mov edx, 0x4178f8
mov eax, 0x4179b4
call fcn.004151c8
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00404dbc
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
mov edx, edi
call fcn.00404d50
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404eb8
test eax, eax
jg 0x417817
lea ecx, [ebp - 0x40]
mov edx, 0x4178f8
mov eax, 0x4179d0
call fcn.004151c8
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
call fcn.00404dbc
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
mov edx, edi
call fcn.00404d50
mov edx, dword [ebp - 0x44]
pop eax
call fcn.00404eb8
test eax, eax
jle 0x417823
mov bl, 1
mov dword [0x421a38], 6
mov eax, edi
call fcn.00402df4
test bl, bl
jne 0x41788f
lea edx, [ebp - 0x48]
xor eax, eax
call fcn.0041652c
cmp dword [ebp - 0x48], 0
setne bl
test bl, bl
jne 0x41788f
call fcn.00417060
test al, al
jne 0x417859
call fcn.004171e8
test al, al
jne 0x417859
xor ebx, ebx
jmp 0x41785b
mov bl, 1
test bl, bl
je 0x417866
mov byte [0x421a34], 1
test bl, bl
jne 0x41788f
cmp byte [0x421a4c], 0
jne 0x41788f
call fcn.0041721c
test al, al
je 0x417888
mov dword [0x421a38], 0xc
mov bl, 1
mov byte [0x421a4c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4178e6
lea eax, [ebp - 0x48]
call fcn.00404558
lea eax, [ebp - 0x44]
call fcn.00404c3c
lea eax, [ebp - 0x40]
call fcn.00404558
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404c54
lea eax, [ebp - 0x34]
call fcn.00404558
lea eax, [ebp - 0x30]
call fcn.00404c3c
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.0040457c
ret