Function at 0x417832
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [0x4339ac]
mov eax, dword [esi + 0x8a0]
push edi
xor edi, edi
cmp ebp, edi
je case.default.0x41788b
cmp eax, edi
mov dword [ebp], edi
je case.default.0x41788b
cmp dword [eax + 0x128], 4
jne case.default.0x41788b
cmp dword [esp + 0x24], 0x111
jne case.default.0x41788b
movzx eax, word [esp + 0x28]
add eax, 0xffff3984
cmp eax, 8
ja case.default.0x41788b
jmp dword [eax*4 + 0x417ad6]
xor ebx, ebx
inc ebx
push ebx
push 2
push ebx
call fcn.00416735
call fcn.004175b3
mov dword [ebp], ebx
jmp case.default.0x41788b
xor ebx, ebx
push edi
inc ebx
jmp 0x417896
push 0x42646b
push dword [esi + 0x39f4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x417ac3
push 2
xor ebx, ebx
push 4
inc ebx
push ebx
call fcn.00416735
cmp eax, 0xffffffff
je 0x4178a3
cmp eax, ebx
jne 0x4178e0
push edi
jmp 0x4178e5
cmp eax, edi
jne 0x41789e
push ebx
push 4
jmp 0x417898
push 2
xor ebx, ebx
push 5
inc ebx
push ebx
call fcn.00416735
cmp eax, 0xffffffff
je 0x4178a3
cmp eax, ebx
jne 0x417902
push edi
jmp 0x417907
cmp eax, edi
jne 0x41789e
push ebx
push 5
jmp 0x417898
push 2
xor ebx, ebx
push 6
inc ebx
push ebx
call fcn.00416735
cmp eax, 0xffffffff
je 0x4178a3
cmp eax, ebx
jne 0x417924
push edi
jmp 0x41792d
cmp eax, edi
jne 0x41789e
push ebx
push 6
jmp 0x417898
xor eax, eax
add esi, 0x3a30
cmp dword [esi], edi
sete al
mov dword [esi], eax
call fcn.004175b3
push str.____RFLSWCHG_____r_n
call fcn.004165a2
jmp 0x417ac3
xor ebx, ebx
inc ebx
cmp dword [esi + 0x3a34], edi
je 0x417a2c
mov edi, dword [esi + 0x3a38]
test edi, edi
mov dword [esp + 0x14], edi
je 0x417a20
push dword [esi + 0x138]
mov ebp, dword [sym.imp.USER32.dll_SetCursor]
call ebp
push edi
push dword [esi + 0x39f4]
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push dword [esi + 0x39f4]
call edi
push dword [esi + 0x39f4]
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
dec eax
push eax
push 0xb1
push dword [esi + 0x39f4]
call edi
push 0
push 0
push 0xb7
push dword [esi + 0x39f4]
call edi
xor edi, edi
cmp dword [esp + 0x28], edi
je 0x4179f7
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esp + 0x14]
mov eax, dword [0x4339ac]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x24]
mov dword [esi + 0x3a38], edi
mov dword [esi + 0x3a34], edi
call ebp
jmp 0x417ab0
and dword [esi + 0x3a34], 0
jmp 0x41789e
push dword [esi + 0x39f4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
mov eax, dword [0x4339ac]
inc edi
push edi
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x417ab0
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x3a38]
test eax, eax
je 0x417a7b
push eax
mov eax, dword [0x4339ac]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push ebp
push dword [esi + 0x39f4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x42646b
push dword [esi + 0x39f4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esp + 0x24]
mov dword [esi + 0x3a38], ebp
mov dword [esi + 0x3a34], ebx
call dword [sym.imp.USER32.dll_SetCursor]
mov ebp, dword [esp + 0x1c]
jmp 0x41789e
call fcn.004174d7
call fcn.004175b3
mov dword [ebp], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret 0x14