Function at 0x408a3d
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x415101
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x44]
push edi
mov eax, dword [esi + 4]
xor ebp, ebp
push ecx
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [esp + 0x40], eax
mov edx, dword [0x419040]
mov dword [esp + 0xec], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x8c]
mov dword [esp + 0x88], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x88]
push eax
push 0x5c
push ecx
mov byte [esp + 0xf8], 2
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [esi + 0x24], ebp
je 0x408acf
mov byte [esp + 0x9d], 1
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x28]
cmp eax, ebp
je 0x408af1
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
jmp 0x408af8
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x40]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov ebx, 0x3e8
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x408b24
cmp dword [eax - 4], ebx
jge 0x408b69
mov ebp, dword [eax - 8]
cmp ebp, ebx
jle 0x408b2d
mov ebx, ebp
push ebx
lea ecx, [esp + 0x14]
call fcn.00401560
test eax, eax
je 0x408b67
lea eax, [ebp + ebp + 2]
lea ecx, [edi + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [ebx + ebx + 2]
push ecx
push edx
push eax
call fcn.004013d0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [ecx - 8], ebp
call fcn.00401670
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov edx, dword [esi + 4]
push 0x3e8
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
call fcn.004015c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], bp
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0x48], ebp
je 0x408bbf
mov edx, dword [esp + 0x40]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
jmp 0x408bf6
mov eax, dword [esi + 0x4c]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
mov eax, dword [esp + 0x44]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x408bf6
mov edx, dword [esp + 0x40]
push ebp
push ebp
lea ecx, [esp + 0x2c]
push ebp
push ecx
push 2
push ebp
push ebp
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x40]
push edi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov edi, dword [sym.imp.USER32.dll_DrawTextW]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax - 8]
lea edx, [esp + 0x14]
push 0x420
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
push eax
call edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x40], ebp
je 0x408c64
mov eax, dword [esp + 0x10]
push 2
mov ecx, dword [eax - 8]
lea edx, [esp + 0x28]
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
push eax
call edi
jmp 0x408cc1
mov eax, dword [esi + 0x44]
cmp eax, ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
je 0x408c79
push 0x8210
jmp 0x408c54
lea edx, [esp + 0x24]
push ebp
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
push eax
call edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x408cc1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
push 2
sub ecx, ebx
push eax
mov eax, dword [esi + 4]
push ecx
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x408ce4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp]
mov edx, dword [0x419044]
mov byte [esp + 0xdc], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x408d1b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408d1b
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.0040eac0
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
add esp, 0xe0
ret 4