Function at 0x405b35
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x824], 0xffffffff
mov dword [ebp - 0x828], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
lea esi, [ebx + 0x1c]
cmp eax, 0x3ee
je 0x405b72
cmp eax, 0x3ef
jne 0x405c78
mov eax, dword [ebx + 0x14]
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
not eax
and eax, 1
or eax, 6
push 8
mov dword [ebp - 0x824], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebx + 0x18]
call edi
push 0
mov dword [ebp - 0x81c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebx + 0x18]
call edi
mov dword [ebp - 0x820], eax
mov eax, dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi + 8]
inc eax
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_Rectangle]
push dword [ebp - 0x81c]
push dword [ebx + 0x18]
call edi
push dword [ebp - 0x820]
push dword [ebx + 0x18]
call edi
lea edi, [ebp - 0x818]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
add dword [ebp - 0x818], 0x1b
add dword [ebp - 0x810], 0x1b
push 1
push dword [ebx + 0x18]
call edi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x828]
push dword [eax + 0x40]
push dword [ebx + 0x18]
call esi
mov dword [ebp - 0x81c], eax
push 0x400
lea eax, [ebp - 0x808]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x24
lea eax, [ebp - 0x818]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x808]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x820]
push dword [ebx + 0x18]
call edi
push dword [ebp - 0x81c]
push dword [ebx + 0x18]
call esi
jmp 0x405e93
cmp eax, 0x3eb
je 0x405dc0
cmp eax, 0x3ea
je 0x405dc0
cmp eax, 0x3ec
jne 0x405d63
push 8
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebx + 0x18]
call edi
push 0
mov dword [ebp - 0x820], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebx + 0x18]
call edi
mov dword [ebp - 0x81c], eax
mov eax, dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi + 8]
inc eax
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_Rectangle]
push dword [ebp - 0x820]
push dword [ebx + 0x18]
call edi
push dword [ebp - 0x81c]
push dword [ebx + 0x18]
call edi
push 1
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x828]
push dword [eax + 0x48]
push dword [ebx + 0x18]
call edi
mov dword [ebp - 0x81c], eax
push 0x400
lea eax, [ebp - 0x808]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x24
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x808]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x820]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x81c]
push dword [ebx + 0x18]
call edi
jmp 0x405eb9
cmp eax, 0x3e8
jne 0x405d98
mov eax, dword [ebx + 0x10]
test al, 1
je 0x405d80
mov dword [ebp - 0x824], 3
jmp 0x405e9c
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 3
inc eax
mov dword [ebp - 0x824], eax
jmp 0x405e9c
cmp eax, 0x3e9
jne 0x405eb9
mov eax, dword [ebx + 0x10]
and al, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 3
add eax, 2
mov dword [ebp - 0x824], eax
jmp 0x405e93
push 8
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebx + 0x18]
call edi
push 0
mov dword [ebp - 0x820], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebx + 0x18]
call edi
mov dword [ebp - 0x81c], eax
mov eax, dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi + 8]
inc eax
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_Rectangle]
push dword [ebp - 0x820]
push dword [ebx + 0x18]
call edi
push dword [ebp - 0x81c]
push dword [ebx + 0x18]
call edi
push 1
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [ebp + 0xc], 0x3ea
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x828]
jne 0x405e41
push dword [eax + 0x40]
jmp 0x405e44
push dword [eax + 0x44]
push dword [ebx + 0x18]
call edi
mov dword [ebp - 0x81c], eax
push 0x400
lea eax, [ebp - 0x808]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x24
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x808]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x820]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x81c]
push dword [ebx + 0x18]
call edi
cmp dword [ebp - 0x824], 0xffffffff
je 0x405eb9
push dword [ebx + 0x20]
mov eax, dword [ebp - 0x824]
push dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x828]
push dword [ecx + eax*4]
push dword [ebx + 0x18]
call fcn.004059ed
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047f164
leave
ret 8