Function at 0x407420
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4a96ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push ebp
mov ebp, dword [esp + 0x26c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 0x34]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x26c], ebx
je 0x40756f
mov edi, dword [esp + 0x278]
cmp edi, ebx
je 0x40756f
mov eax, dword [esi + 4]
push ebx
push ebx
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x34]
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push ecx
mov dword [esp + 0x3c], eax
push 0x18
mov dword [esp + 0x44], eax
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x48]
push edi
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x20], 0
lea eax, [edx + ecx]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x38]
cdq
sar ebx, 1
sub eax, edx
mov ecx, ebx
sar eax, 1
sub ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x38]
mov eax, dword [esp + 0x34]
imul edi, ecx
cdq
idiv edi
mov edx, dword [esp + 0x1c]
add edx, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x407517
imul ecx, dword [esp + 0x10]
inc ecx
jmp 0x40755c
mov al, byte [esp + 0x27c]
test al, 1
jne 0x407554
mov edx, dword [esi + 0x2c]
test edx, edx
jne 0x407554
test al, 4
je 0x407542
imul ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x34]
add ecx, 3
push ecx
push edi
lea eax, [esp + 0x28]
push edx
push eax
jmp 0x407567
imul ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x34]
push edi
lea edx, [esp + 0x28]
push ecx
push edx
jmp 0x407567
imul ecx, dword [esp + 0x10]
add ecx, 2
mov eax, dword [esi + 0x34]
push ecx
push edi
lea ecx, [esp + 0x28]
push eax
push ecx
push ebp
mov ecx, esi
call fcn.00407130
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], bx
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
push 0x104
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4076cc
mov eax, dword [esi + 0x54]
mov ecx, 0x190
cmp eax, ebx
je 0x4075be
mov ecx, 0x3bc
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push eax
push 0x10
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_CreateFontW]
mov edi, eax
mov eax, dword [esp + 0x278]
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call edi
cmp eax, 0xffffffff
jne 0x40761b
lea eax, [esp + 0x58]
push eax
call edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
push ecx
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
add eax, edx
push 1
cdq
sub eax, edx
push ebp
mov ecx, eax
mov eax, dword [esp + 0x3c]
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sar edi, 3
sub ecx, eax
add edi, 4
mov ebx, ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x10], eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
test byte [esp + 0x27c], 4
je 0x407694
push 0x22
jmp 0x407696
push 2
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebx
push edi
lea ecx, [esp + 0x6c]
push 0
push ecx
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_DrawStateW]
mov edx, dword [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x260
ret 0xc