Function at 0x406910
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14c
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x154]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push edi
mov edi, ecx
push 0xfffffffffffffff0
push edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
call esi
push 0xffffffffffffffec
push edi
mov dword [esp + 0x30], eax
call esi
push edi
mov ebx, eax
mov byte [esp + 0x16], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebp, eax
cmp ebp, 0x100
jle 0x406997
lea ecx, [ebp + 0x10]
push ecx
call fcn.00416def
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x406997
lea edx, [ebp + 1]
push edx
mov esi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, esi
mov dword [esp + 0x18], eax
jmp 0x4069b9
push 0x100
lea eax, [esp + 0x4c]
push eax
push edi
mov byte [esp + 0x54], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x48]
mov ebp, eax
mov dword [esp + 0x18], ecx
mov eax, ecx
cmp byte [eax], 0x5b
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
jne 0x406a08
cmp byte [eax + 1], 0x5b
lea esi, [eax + 1]
je 0x406a08
push 0x5d
push esi
call fcn.00418dd0
add esp, 8
test eax, eax
je 0x406a08
mov dword [esp + 0x18], esi
lea esi, [eax + 1]
push esi
mov byte [eax], 0
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push 0
push 0xc
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov byte [esp + 0x12], 1
push 0x11b
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x406cdb
test bl, 0x10
je 0x406a3c
and ebx, 0xffffffef
push ebx
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov byte [ebp + 0x22], 1
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push 0
push 0
mov dword [ebp + 9], edx
mov eax, dword [eax + 8]
push 0x31
lea esi, [ebp + 0x39]
push edi
mov dword [ebp + 0xd], eax
mov dword [ebp + 0x11], edi
mov dword [ebp + 1], ecx
mov dword [ebp + 5], ebx
mov byte [esi], 0
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov dword [ebp + 0x79], eax
call fcn.004060e0
add esp, 4
mov dl, 0x4e
mov byte [ebp + 0x74], al
mov byte [ebp + 0xd9], al
mov byte [ebp + 0x48], 0
mov byte [ebp + 0x49], dl
test ebx, 0x8000
je 0x406aa3
mov byte [ebp + 0x27], 1
test bl, 0x40
je 0x406aac
mov byte [ebp + 0x21], 1
cmp byte [ebp + 0x22], 0
jne 0x406b9a
test bl, 0x20
je 0x406b9a
cmp dword [0x4390a0], 0
jne 0x406b1c
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
push 0x69
mov ebx, 0x435f14
mov edi, 0x435ef0
call fcn.00404bc0
add esp, 4
push 0
push 0
push 0
mov dword [0x4390a0], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
push 0
push 0x6a
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov edi, eax
test edi, edi
je 0x406b14
lea ecx, [esp + 0x30]
push ecx
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov dword [0x4390a4], edi
mov dl, 0x4e
mov ecx, dword [0x4390a0]
mov byte [esi], 0
mov eax, dword [0x438fd0]
mov dword [ebp + 0x75], eax
mov byte [ebp + 0x49], dl
mov dword [ebp + 0x3b], ecx
mov byte [ebp + 0x3f], 1
mov al, 0x42
mov byte [ebp + 0x3a], al
mov ecx, dword [0x435f14]
mov dword [ebp + 0x40], ecx
mov ecx, dword [0x435ef0]
mov dword [ebp + 0x44], ecx
lea edi, [ebp + 0x9e]
mov ecx, 0x19
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov byte [ebp + 0xae], dl
mov edx, dword [0x4390a4]
mov dword [ebp + 0xa0], edx
mov byte [ebp + 0x9f], al
mov byte [ebp + 0xa4], 1
mov eax, dword [0x435f14]
mov dword [ebp + 0xa5], eax
mov ecx, dword [0x435ef0]
mov dword [ebp + 0xa9], ecx
mov byte [ebp + 0x1f], 1
cmp byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
je 0x406c41
push 0x435ef4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x18]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 9]
push esi
push edx
lea edx, [esp + 0x1f]
mov ecx, eax
call fcn.004079f0
add esp, 0xc
push 0x435ef4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 1
jne 0x406bea
mov byte [ebp + 0x38], 1
cmp byte [esp + 0x13], 0
je 0x406c41
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406c02
push eax
call fcn.00416ce5
add esp, 4
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
je 0x406c41
lea eax, [esi + 0x10]
push eax
call fcn.00416def
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x406c41
lea ecx, [esi + 1]
push ecx
mov ebx, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
push ebp
push ebx
push esi
lea eax, [ebp + 0x39]
mov ecx, edi
mov byte [ebp + 0x20], 1
call fcn.004080f0
add esp, 0xc
test byte [esp + 0x28], 0x20
jne 0x406c6a
cmp byte [ebp + 0x1f], 0
je 0x406c7d
push ebp
push ebx
lea eax, [ebp + 0x9e]
push esi
mov ecx, edi
call fcn.004080f0
add esp, 0xc
cmp byte [ebp + 0x27], 0
je 0x406ca0
mov edx, dword [ebp + 0x96]
mov eax, dword [ebp + 0x92]
push 6
push edx
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x160]
push ecx
push edx
push 1
push edi
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406cd9
push eax
call fcn.00416ce5
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416a72
add esp, 0x14c
ret