Function at 0x1002db00
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x1006c4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1009140c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x64]
mov ecx, dword [ebx + 4]
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [edi], eax
mov dword [edi + 4], eax
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebx + 4]
mov dword [esp + 0x2c], 0
call fcn.1002d3c0
mov dword [esp + 0x30], esi
call fcn.1002d3c0
test al, al
je 0x1002db80
push str.tooltip
push esi
call dword [sym.imp.UxTheme.dll_OpenThemeData]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x98]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x5c], 1
je 0x1002dbf2
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
add dword [edi], edx
cmp eax, ecx
jg 0x1002dbbd
mov eax, ecx
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x58]
push eax
mov eax, dword [ebx + 0x98]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
cmp byte [esp + 0x6c], 0
je 0x1002dbea
mov ecx, dword [ebx + 0x98]
push esi
push esi
push esi
push ebp
push esi
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x34], edx
test byte [ebx + 0x40], 1
je 0x1002dc91
mov eax, dword [edi]
cmp eax, esi
jle 0x1002dc07
add eax, 8
mov dword [edi], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.1002d420
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x20]
add dword [edi], edx
cmp eax, esi
jg 0x1002dc28
mov eax, esi
cmp byte [esp + 0x6c], 0
mov dword [edi + 4], eax
je 0x1002dc89
mov ecx, dword [esp + 0x3c]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
xor edx, edx
test eax, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
je 0x1002dc68
push edx
lea ecx, [esp + 0x48]
push ecx
push 1
push 5
push ebp
push eax
call dword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x1002dc89
push 0x4000
push 1
lea edx, [esp + 0x4c]
push edx
push ebp
call dword [sym.imp.USER32.dll_DrawFrameControl]
test eax, eax
jne 0x1002dc89
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x3c], eax
mov edx, dword [0x100a61f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x100a61f4
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x68], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0xff
or eax, ecx
mov byte [esp + 0x5c], 2
jge 0x1002dcd3
push 0xff
lea ecx, [esp + 0x6c]
call fcn.10002533
mov esi, dword [esp + 0x68]
mov ecx, dword [ebx + 4]
push 0xff
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test esi, esi
jne 0x1002dceb
xor eax, eax
jmp 0x1002dd01
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1002dcf0
sub eax, edx
js 0x1002de25
cmp eax, dword [esi - 8]
jg 0x1002de25
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov eax, dword [esi - 0xc]
test eax, eax
je 0x1002dddd
mov eax, dword [ebx + 0x4c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ecx
jle 0x1002dd38
add eax, 8
mov dword [edi], eax
mov ebx, dword [sym.imp.USER32.dll_DrawTextA]
push 0xc60
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push esi
push ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
call ebx
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
add dword [edi], eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
cmp ecx, eax
jle 0x1002dd79
mov eax, ecx
cmp byte [esp + 0x6c], 0
mov dword [edi + 4], eax
je 0x1002ddd1
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x40]
push 1
add eax, ecx
mov dword [esp + 0x54], edx
push ebp
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x54]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x865
lea ecx, [esp + 0x48]
push ecx
push 0xffffffffffffffff
push esi
push ebp
call ebx
mov edx, dword [esp + 0x68]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
add esi, 0xfffffff0
mov byte [esp + 0x5c], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002ddfe
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002de0d
push eax
call dword [sym.imp.UxTheme.dll_CloseThemeData]
mov eax, edi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc
push 0x80070057
call fcn.1000199e
int3