Function at 0x420d27
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4581d0]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, dword [eax + 0x18]
push edi
test ebx, ebx
mov dword [ebp - 0x14], ecx
jne 0x420d4d
xor esi, esi
jmp 0x420d8a
lea esi, [eax + 0x1c]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [eax], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x420d49
mov esi, dword [eax + 8]
mov edx, dword [ecx + 0xaf8]
lea eax, [ecx + 0xaf0]
xor edi, edi
test edx, edx
jle 0x420d7f
mov eax, dword [eax]
cmp dword [eax], esi
je 0x420d82
inc edi
add eax, 4
cmp edi, edx
jl 0x420d73
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x420d99
push 1
pop esi
lea ecx, [ebp - 4]
call fcn.00401802
mov eax, esi
jmp 0x420f25
lea esi, [ecx + 0x6c]
push 4
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.004394e4
push 7
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.004394e4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
test byte [eax + 0x10], 1
je 0x420ddf
push 0xd
mov ecx, esi
call fcn.004394e4
push 0xe
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.004394e4
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov esi, 0x4a1dec
push 0xa0
push esi
mov eax, dword [eax + 0xaf4]
mov eax, dword [eax + edi*4]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, esi
test eax, eax
jne 0x420e0a
xor edi, edi
jmp 0x420e13
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
push esi
push eax
lea ecx, [ebp - 4]
call fcn.004018f3
push dword [ebp - 0x14]
call fcn.00420c4f
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
pop ecx
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push ebx
call esi
mov dword [ebp - 0x14], eax
push edi
push edi
lea eax, [ebp - 0x2c]
push edi
push eax
push 2
push edi
push edi
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [ebp - 0x14]
push ebx
call esi
cmp dword [ebp - 8], edi
je 0x420e6d
push dword [ebp - 8]
lea esi, [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call fcn.0043a08a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x32
call esi
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fmul qword [0x453d88]
call fcn.00442b7c
push 0x32
mov edi, eax
call esi
push 0x31
mov dword [ebp - 0x18], eax
call esi
push 3
push 0
push 0
push dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x1c]
add eax, edi
push eax
mov eax, dword [ebp - 0x2c]
add eax, edi
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawIconEx]
push 0x32
call esi
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fmul qword [0x453d80]
fiadd dword [ebp - 0x2c]
call fcn.00442b7c
push 0x32
mov dword [ebp - 0x2c], eax
call esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
sub dword [ebp - 0x24], eax
push ebx
call esi
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push ebx
mov dword [ebp - 0x18], eax
call edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push 0x8824
push eax
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp - 4]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x1c]
push ebx
call edi
push dword [ebp - 0x18]
push ebx
call esi
lea ecx, [ebp - 4]
call fcn.00401802
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10