Function at 0x10001fa0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x168
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x17c]
push 0xfffffffffffffff0
push edi
call sub.USER32.dll_GetWindowLongA
and eax, 0x1f
mov ebp, eax
push edi
call sub.USER32.dll_GetParent
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x180]
push 2
push esi
call sub.GDI32.dll_SetBkMode
lea eax, [esp + 0x58]
push eax
push edi
call sub.USER32.dll_GetClientRect
lea edx, [esp + 0x58]
lea ecx, [esp + 0x48]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
push 0
push 0
push 0x31
push edi
call sub.USER32.dll_SendMessageA
mov dword [esp + 0x10], eax
or eax, eax
je 0x1000201f
push eax
push esi
call sub.GDI32.dll_SelectObject
mov dword [esp + 0x10], eax
push edi
push esi
mov eax, dword [esp + 0x20]
push 0x135
push eax
call sub.USER32.dll_SendMessageA
push eax
push esi
call sub.GDI32.dll_SelectObject
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push eax
push esi
call sub.GDI32.dll_IntersectClipRect
mov ebx, dword [esp + 0x184]
test bl, 0x10
je 0x1000208d
cmp ebp, 7
je 0x1000208d
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
push 0xf00021
push eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push eax
push esi
call sub.GDI32.dll_PatBlt
push edi
call sub.USER32.dll_IsWindowEnabled
mov dword [esp + 0x20], eax
push 0
push 0
push 0xf2
push edi
call sub.USER32.dll_SendMessageA
mov dword [esp + 0x28], 0
mov ecx, eax
and ecx, 3
mov dword [esp + 0x30], ecx
cmp ecx, 1
sbb ecx, ecx
inc ecx
and eax, 4
mov dword [esp + 0x34], eax
sar eax, 1
or eax, ecx
mov edx, eax
shl eax, 3
sub eax, edx
add eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], 0
jne 0x100020f1
add ecx, 2
mov eax, ecx
shl ecx, 3
sub ecx, eax
mov eax, dword [esp + 0x24]
lea eax, [eax + ecx*2]
mov dword [esp + 0x24], eax
test bl, 0xa
jne 0x100020ff
or ebp, ebp
je 0x100020ff
cmp ebp, 1
jne 0x10002113
lea eax, [esp + 0x78]
push 0x100
push eax
push edi
call sub.USER32.dll_GetWindowTextA
mov dword [esp + 0x1c], eax
cmp ebp, 9
ja case.0x1000211c.8
jmp dword [ebp*4 + 0x10002420]
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push ebp
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x68]
push eax
push esi
push edi
call fcn.10001c80
add esp, 0x1c
jmp case.0x1000211c.8
mov dword [esp + 0x28], 0xd
test bl, 4
je 0x100021be
push esi
call sub.GDI32.dll_CreateCompatibleDC
mov edi, eax
or edi, edi
je 0x100021be
mov eax, dword [0x10043484]
push eax
push edi
call sub.GDI32.dll_SelectObject
mov ebp, eax
or ebp, ebp
je 0x100021b8
mov eax, dword [esp + 0x28]
push 0xcc0020
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
push 0xd
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
push 0xe
sub eax, 0xd
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x64]
add ecx, eax
mov eax, dword [esp + 0x60]
push ecx
push eax
push esi
call sub.GDI32.dll_BitBlt
push ebp
push edi
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteDC
test bl, 2
je 0x100021fb
mov eax, dword [esp + 0x58]
add eax, 0x12
mov dword [esp + 0x48], eax
cmp dword [esp + 0x20], 0
jne 0x100021e1
mov eax, dword [0x10043470]
push eax
push esi
call sub.GDI32.dll_SetTextColor
lea eax, [esp + 0x48]
push 0x24
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x84]
push eax
push esi
call sub.USER32.dll_DrawTextA
test bl, 8
je case.0x1000211c.8
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.10001310
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x5c]
add esp, 0x10
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
add eax, 0x12
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x48]
mov dword [esp + 0x50], eax
push 1
lea eax, [esp + 0x4c]
push 1
push eax
call sub.USER32.dll_InflateRect
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x50]
push eax
call sub.USER32.dll_IntersectRect
lea eax, [esp + 0x48]
push eax
push esi
call sub.USER32.dll_DrawFocusRect
mov eax, dword [esp + 0x38]
push eax
push esi
call sub.GDI32.dll_SelectObject
cmp dword [esp + 0x10], 0
je 0x100022a1
mov eax, dword [esp + 0x10]
push eax
push esi
call sub.GDI32.dll_SelectObject
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x168
ret
cmp dword [esp + 0x30], 2
jne case.0x1000211c.2
mov dword [esp + 0x28], 0x1a
jmp case.0x1000211c.2
test bl, 6
je case.0x1000211c.8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x80]
push eax
push esi
call fcn.10001310
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x10002307
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
push 0x1003e168
push esi
call fcn.10001310
add esp, 0x10
add dword [esp + 0x48], 4
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x48]
add eax, 4
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
test bl, 0x20
je 0x100023a0
lea ecx, [esp + 0x48]
lea edx, [esp + 0x68]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x70], eax
mov eax, edx
push eax
push edi
call sub.USER32.dll_ClientToScreen
lea eax, [esp + 0x70]
push eax
push edi
call sub.USER32.dll_ClientToScreen
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.USER32.dll_ScreenToClient
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.USER32.dll_ScreenToClient
lea eax, [esp + 0x68]
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.USER32.dll_InvalidateRect
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x5c], eax
dec dword [esp + 0x60]
dec dword [esp + 0x64]
push 0xf
push 2
lea eax, [esp + 0x60]
push 2
push eax
push esi
call fcn.10001130
add esp, 0x14
push 1
lea eax, [esp + 0x5c]
push 1
push eax
call sub.USER32.dll_OffsetRect
push 0xf
push 0
lea eax, [esp + 0x60]
push 0
push eax
push esi
call fcn.10001130
add esp, 0x14
cmp dword [esp + 0x20], 0
jne 0x100023fe
mov eax, dword [0x10043470]
push eax
push esi
call sub.GDI32.dll_SetTextColor
lea eax, [esp + 0x48]
push 0x20
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x84]
push eax
push esi
call sub.USER32.dll_DrawTextA
jmp case.0x1000211c.8