Function at 0x46dd54
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp dword [0x4c20ec], 0
push ebx
push esi
push edi
je 0x46dd79
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046e041
jmp 0x46e038
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
mov ecx, eax
and ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, eax
and eax, 1
and ecx, 6
mov dword [esp + 0x18], eax
mov eax, dword [sym.imp.USER32.DLL_GetSysColor]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x46ddb5
push 0xe
call eax
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SetTextColor]
mov edi, dword [ebp + 0xc]
jmp 0x46ddcf
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x4c], 0xffffffff
jne 0x46ddc5
push 0x12
call eax
push eax
jmp 0x46ddc8
push dword [edi + 0x4c]
push ebx
call dword [sym.imp.GDI32.DLL_SetTextColor]
cmp dword [edi + 0x48], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x46ddef
push 0xf
call dword [sym.imp.USER32.DLL_GetSysColorBrush]
push 0xf
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.DLL_GetSysColor]
jmp 0x46ddff
push dword [edi + 0x48]
call dword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x48]
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SetBkColor]
push dword [esp + 0xc]
mov dword [esp + 0x30], eax
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp dword [esp + 0x18], 0
mov dword [esp + 0x28], eax
lea eax, [esi + 0x1c]
mov esi, eax
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
movsd dword es:[edi], dword [esi]
je 0x46de68
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.DLL_InflateRect]
push 0x10
call dword [sym.imp.USER32.DLL_GetSysColor]
push eax
call dword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov esi, eax
push esi
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FrameRect]
push esi
call dword [sym.imp.GDI32.DLL_DeleteObject]
jmp 0x46de8e
cmp dword [esp + 0x10], 0
je 0x46de7e
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.DLL_InflateRect]
push 0x10
push 4
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFrameControl]
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x30]
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 esi, dword [esp + 0x18]
lea eax, [esp + 0x30]
test esi, esi
je 0x46deb3
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.DLL_InflateRect]
jmp 0x46ded3
cmp dword [esp + 0x10], 0
je 0x46dec0
push 0xfffffffffffffffd
push 0xfffffffffffffffd
jmp 0x46dec4
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.DLL_InflateRect]
dec dword [esp + 0x30]
dec dword [esp + 0x34]
push dword [esp + 0xc]
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FillRect]
push 2
pop eax
test esi, esi
jne 0x46def0
cmp dword [esp + 0x20], esi
je 0x46def8
add dword [esp + 0x30], eax
add dword [esp + 0x34], eax
mov esi, dword [ebp + 0xc]
push 0xfffffffffffffff0
push dword [esi]
mov edi, 0x104
call dword [sym.imp.USER32.DLL_GetWindowLongW]
test eax, 0x2000
lea ecx, [edi + 0x20]
cmove edi, ecx
mov dword [esp + 0x24], edi
test eax, 0x100
jne 0x46df27
or edi, 1
mov dword [esp + 0x24], edi
push 0
push 0
push 0xe
push dword [esi]
call dword [sym.imp.USER32.DLL_SendMessageW]
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420bfa
pop ecx
push esi
push eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.USER32.DLL_GetWindowTextW]
push edi
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.DLL_DrawTextW]
cmp dword [esp + 0x20], 0
je 0x46dfb4
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [esp + 0x30]
inc dword [esp + 0x34]
push 0x11
call dword [sym.imp.USER32.DLL_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SetTextColor]
push dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push ebx
call dword [sym.imp.USER32.DLL_DrawTextW]
cmp dword [esp + 0x10], 0
je 0x46e000
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.DLL_CreateSolidBrush]
mov esi, eax
push esi
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FrameRect]
push esi
call dword [sym.imp.GDI32.DLL_DeleteObject]
push 0xfffffffffffffffc
push 0xfffffffffffffffc
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.DLL_InflateRect]
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFocusRect]
push dword [esp + 0x18]
call fcn.00420c6e
pop ecx
push dword [esp + 0x28]
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
push dword [esp + 0xc]
call dword [sym.imp.GDI32.DLL_DeleteObject]
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.GDI32.DLL_SetTextColor]
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.GDI32.DLL_SetBkColor]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8