Function at 0x10002040
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x9b4
mov eax, dword [0x100778dc]
mov dword [esp + 0x9b0], eax
mov eax, dword [0x10078928]
test eax, eax
jle 0x100023cb
push esi
push edi
mov edi, dword [esp + 0x9c0]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov al, byte [0x10078926]
test al, al
je 0x100020b6
mov edx, dword [0x10078938]
test edx, edx
jle 0x100023c9
mov ecx, dword [0x1007893c]
test ecx, ecx
jle 0x100023c9
mov eax, dword [0x10078930]
mov dword [esp + 0x10], eax
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [0x10078934]
mov dword [esp + 0x14], eax
add eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x100020c2
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x40]
push ecx
push 0x154
push 0x29
mov dword [esp + 0x4c], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x100020e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov al, byte [0x10078820]
test al, al
push 0x825
je 0x10002129
push 0x10078820
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x10002138
lea ecx, [esp + 0x194]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
push ebp
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x1a0]
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
lea ebp, [eax + edx + 0x16]
inc ecx
push ecx
lea edx, [ebp - 1]
push edx
push esi
mov dword [0x1007892c], ebp
call dword [sym.imp.GDI32.dll_GetPixel]
mov edi, eax
push 8
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [0x10078928]
mov dword [esp + 0x28], eax
mov ecx, edi
shr eax, 0x10
shr ecx, 0x10
movzx edi, cl
mov ecx, dword [esp + 0x14]
mov ebx, 0x64
sub ebx, edx
movzx edx, ch
mov dword [esp + 0x30], edx
movzx edx, al
movzx ecx, cl
mov dword [esp + 0x10], ecx
lea ecx, [edx + edi*4]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx ecx, al
imul ecx, dword [0x10078928]
mov edx, ebx
imul edx, edi
add ecx, edx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, byte [esp + 0x29]
xor ecx, ecx
mov ch, al
mov eax, dword [esp + 0x30]
lea edi, [edx + eax*4]
mov eax, 0x66666667
imul edi
mov eax, dword [esp + 0x30]
mov edi, edx
imul eax, ebx
sar edi, 1
mov edx, edi
shr edx, 0x1f
add edx, edi
movzx edi, dl
imul edi, dword [0x10078928]
add edi, eax
mov eax, 0x51eb851f
imul edi
mov edi, edx
sar edi, 5
mov eax, edi
movzx edx, byte [esp + 0x28]
shr eax, 0x1f
add eax, edi
mov cl, al
mov eax, dword [esp + 0x10]
lea edi, [edx + eax*4]
mov eax, 0x66666667
imul edi
mov eax, dword [esp + 0x10]
mov edi, edx
imul eax, ebx
sar edi, 1
mov edx, edi
shr edx, 0x1f
add edx, edi
movzx edi, dl
imul edi, dword [0x10078928]
add edi, eax
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, al
shl ecx, 8
or ecx, edx
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push esi
call dword [sym.imp.GDI32.dll_GetTextAlign]
push 0
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetTextAlign]
fld qword [0x10053808]
push 0
push 0x190
push str.Arial
sub esp, 8
fstp qword [esp]
push esi
call fcn.10001f50
add esp, 0x18
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push 0
lea edx, [esp + 0x34]
push edx
sub eax, ebp
push eax
mov dword [esp + 0x28], ebp
call fcn.10001ef0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call fcn.10001ef0
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentExPointA]
test eax, eax
je 0x10002325
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
lea eax, [edx + ecx]
cmp eax, dword [esp + 0x20]
jge 0x1000233b
mov dword [esp + 0x20], eax
jmp 0x1000233b
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.10001ef0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10078928]
cmp eax, 0x64
je 0x10002349
test eax, eax
jne 0x10002370
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x2c]
push eax
call fcn.10001ef0
mov ecx, dword [esp + 0x20]
push eax
push ecx
push ebp
push esi
call dword [sym.imp.GDI32.dll_TextOutA]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [esp + 0x34]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
mov eax, dword [esp + 0x38]
push eax
call edi
push esi
mov esi, dword [esp + 0x9cc]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.USER32.dll_ValidateRect]
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x9b0]
call fcn.1004189e
add esp, 0x9b4
ret