Function at 0x427370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c4
mov eax, dword [0x438004]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
mov ebx, 4
mov dword [esp + 0x28], 0x14
mov esi, ecx
xorps xmm0, xmm0
push edi
movups xmmword [esp + 0x30], xmm0
lea edi, [ebx + 0xb]
test esi, esi
je case.0x4273c4.6
mov eax, dword [esi]
add eax, 0xfffffffd
cmp eax, 0x63
ja case.0x4273c4.6
movzx eax, byte [eax + 0x42789c]
jmp dword [eax*4 + 0x427884]
call fcn.00426e00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004010c7
mov esp, ebp
pop ebp
ret
mov edi, 8
mov dl, 0x32
lea ecx, [edi + 7]
call fcn.004284a0
mov ecx, dword [esi + 0x10]
mov ebx, eax
test cl, 1
je 0x427412
mov dl, 0x1e
lea ecx, [edi + 8]
call fcn.004284a0
mov ecx, dword [esi + 0x10]
mov ebx, eax
mov edi, 0xe
test cl, 4
je 0x42742a
xor dl, dl
mov ecx, 0xf
call fcn.004284a0
mov ebx, eax
mov edi, 0x11
push edi
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x28]
add eax, dword [esi + 0x20]
sub eax, dword [esp + 0x40]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx edi, ax
lea eax, [esp + 0x2c0]
push eax
push dword [esi + 8]
shr edi, 2
push 0x148
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x2c0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427493
push 0
sub ecx, edx
lea eax, [esp + 0x2c4]
sar ecx, 1
push ecx
push eax
lea eax, [esi + 0x1c]
push eax
push 6
push ebx
lea eax, [edi + edi*2]
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004010c7
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push dword [esi + 0x20]
lea edi, [esi + 0x1c]
push dword [edi]
push 0
push 0
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
push 0
push 2
push edi
jmp 0x427864
mov eax, dword [esi + 0x10]
mov ecx, eax
inc dword [esi + 0x20]
and eax, 1
and ecx, ebx
mov dword [esp + 0x14], ecx
push 0x104
lea ecx, [eax + 3]
mov dword [esp + 0x10], ecx
lea ecx, [eax + 6]
xor eax, 1
mov dword [esp + 0x14], ecx
lea ebx, [eax*2 + 2]
lea eax, [esp + 0xbc]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffeb
push dword [esi + 0x14]
call edi
push dword [esi + 0x14]
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetParent]
push 0xffffffffffffffeb
push eax
call edi
test eax, eax
je 0x42757a
mov eax, dword [eax]
cmp eax, dword [esi + 0x14]
jne 0x42757a
mov al, 1
jmp 0x42757c
xor al, al
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4276c7
cmp dword [edi + 0x10], 0
jne 0x4276b2
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1c]
add eax, 0xd
xor dl, dl
mov dword [esi + 0x24], eax
mov ecx, 0xf
mov eax, dword [esi + 0x20]
add eax, 0xd
mov dword [esi + 0x28], eax
call fcn.004284a0
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x1c]
push eax
call fcn.00427330
add esp, 4
mov dl, 0x32
mov ecx, 0xf
call fcn.004284a0
mov ecx, dword [esi + 0x18]
mov edx, ebx
push eax
call fcn.00427330
add esp, 4
lea eax, [esp + 0xb8]
push 0x104
push eax
push dword [esi + 0x14]
mov eax, dword [sym.imp.USER32.dll_GetWindowTextW]
call eax
cmp dword [edi + 4], 0
je 0x427625
push 4
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [esi + 0x24]
push 0xffffffffffffffff
push 0
push 0
push 2
sub eax, 0xb
push eax
push dword [esi + 0x18]
push 0
push dword [0x43ad68]
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
push 0xf
push 2
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawEdge]
cmp dword [esp + 0x14], 0
mov ecx, 2
mov eax, 0x22
cmove eax, ecx
push eax
mov eax, dword [esi + 0x24]
push 0
push 0
push 0
add eax, 4
push eax
push 0
lea eax, [esp + 0xd0]
push eax
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
test byte [esi + 0x10], 0x10
je case.0x4273c4.6
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
add eax, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
add eax, 2
add eax, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004010c7
mov esp, ebp
pop ebp
ret
test al, al
je 0x427837
inc dword [esp + 0x10]
mov ebx, 2
inc dword [esp + 0xc]
mov edi, 0xf
mov eax, dword [esi + 0x10]
mov ecx, 0xf
and al, 0x10
neg al
sbb al, al
and al, 0x2d
mov dl, al
call fcn.004284a0
mov ecx, dword [esi + 0x18]
lea edx, [esi + 0x1c]
push eax
call fcn.00427330
add esp, 4
mov ecx, 2
cmp dword [esp + 0x14], 0
mov eax, 0x22
cmove eax, ecx
push eax
push 0
push 0
push dword [esp + 0x18]
lea eax, [esp + 0xc8]
push dword [esp + 0x20]
push 0
push eax
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawStateW]
test byte [esi + 0x10], 0x10
je case.0x4273c4.5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
inc ecx
add dword [esp + 0x24], 0xfffffffe
add edx, 2
add dword [esp + 0x28], 0xfffffffe
test byte [esi + 0x10], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
je 0x427768
inc dword [esp + 0x24]
lea eax, [ecx + 1]
inc dword [esp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [edx + 1]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [esp + 0x7c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowInfo]
push 0x104
lea eax, [esp + 0xbc]
push eax
push dword [esi + 0x14]
mov eax, dword [sym.imp.USER32.dll_GetWindowTextW]
call eax
cmp word [esp + 0xb8], 0x23
jne 0x427851
mov ebx, dword [sym.imp.USER32.dll_GetParent]
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x14]
call ebx
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
lea edi, [esi + 0x1c]
sub eax, dword [esp + 0x1c]
mov dl, 0x26
sub eax, 3
mov dword [edi], 1
mov ecx, 0x10
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], 1
call fcn.004284a0
mov ecx, dword [esi + 0x18]
mov edx, edi
push eax
call fcn.00427330
add dword [esp + 0x38], 0xa
lea eax, [esp + 0x30]
inc dword [esi + 0x20]
add esp, 4
push eax
push 0x8000
push edi
push 0xffffffffffffffff
lea eax, [esp + 0xca]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawTextExW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004010c7
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov edi, 0x4000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
jmp 0x4276cc
test dword [esp + 0xa0], 0x1000
jne case.0x4273c4.6
push edi
push ebx
lea eax, [esi + 0x1c]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_DrawEdge]
mov ecx, dword [esp + 0x4cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004010c7
mov esp, ebp
pop ebp
ret