Function at 0x401f48
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe54
mov eax, 0x4e2429
push ebx
push esi
push edi
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
lea edi, [ebp - 0x14c]
mov esi, 0x4e2328
mov ecx, 0x40
lea eax, [ebp - 0x14c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov word [ebp - 0x14], 8
mov dword [ebp - 0x28], 0x5c8
push pe_nt_image_headers32
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetWindowTextA
test eax, eax
jne 0x401fa9
mov byte [ebp - 0x14c], 0
call fcn.00401cd0
mov dword [ebp - 0x28], 0x5dd
lea ecx, [ebp - 0x18c]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_BeginPaint
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0x5de
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x401fe5
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x402410
lea eax, [ebp - 0x184]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetClientRect
test eax, eax
jne 0x402008
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x402410
mov dword [ebp - 0x28], 0x5e8
mov eax, dword [ebp - 0x38]
push eax
call sub.GDI32.dll_CreateCompatibleDC
mov ebx, eax
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp - 0x180]
sub eax, edx
push eax
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x184]
sub ecx, eax
push ecx
mov edx, dword [ebp - 0x38]
push edx
call sub.GDI32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00402be4
pop ecx
mov esi, eax
mov dword [ebp - 0x48], 1
test esi, 0x200
je 0x402071
xor eax, eax
mov dword [ebp - 0x48], eax
test esi, 0x400
je 0x402080
mov dword [ebp - 0x48], 2
or dword [ebp - 0x48], 4
mov edx, dword [0x4e2318]
test esi, 0x40000
mov dword [ebp - 0x44], edx
je 0x40209e
mov ecx, dword [0x4e231c]
mov dword [ebp - 0x44], ecx
test esi, 0x10000
je 0x4020ae
mov eax, dword [0x4e2320]
mov dword [ebp - 0x44], eax
test esi, 0x20000
je 0x4020bf
mov edx, dword [0x4e2324]
mov dword [ebp - 0x44], edx
test esi, 1
je 0x402104
push 6
call sub.GDI32.dll_GetStockObject
mov edi, eax
push edi
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x184]
push edi
push eax
push ebx
call sub.USER32.dll_FillRect
mov edx, dword [ebp - 0x2c]
push edx
push ebx
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteObject
mov dword [ebp - 0x28], 0x71e
jmp 0x40221f
mov dword [ebp - 0x28], 0x71d
test esi, 0x4000
je 0x402125
push 0x6060ff
push 1
push 0
call sub.GDI32.dll_CreatePen
mov edi, eax
jmp 0x402138
push 0xf
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov edi, eax
push edi
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x184]
push edi
push eax
push ebx
call sub.USER32.dll_FillRect
mov edx, dword [ebp - 0x2c]
push edx
push ebx
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteObject
mov dword [ebp - 0x28], 0x71e
test esi, 0x1000
jne 0x402210
test esi, 0x1000000
je 0x4021a0
push 2
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov edi, eax
push 2
call sub.USER32.dll_GetSysColor
push eax
call sub.GDI32.dll_CreateSolidBrush
mov dword [ebp - 0x34], eax
jmp 0x4021c3
push 3
call sub.USER32.dll_GetSysColor
push eax
push 1
push 0
call sub.GDI32.dll_CreatePen
mov edi, eax
push 3
call sub.USER32.dll_GetSysColor
push eax
call sub.GDI32.dll_CreateSolidBrush
mov dword [ebp - 0x34], eax
push edi
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x30], eax
push 7
mov edx, dword [ebp - 0x17c]
push edx
push 0
push 0
push ebx
call sub.GDI32.dll_Rectangle
mov ecx, dword [ebp - 0x2c]
push ecx
push ebx
call sub.GDI32.dll_SelectObject
mov eax, dword [ebp - 0x30]
push eax
push ebx
call sub.GDI32.dll_SelectObject
push edi
call sub.GDI32.dll_DeleteObject
mov edx, dword [ebp - 0x34]
push edx
call sub.GDI32.dll_DeleteObject
push 0
push ebx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401d60
add esp, 0xc
push 1
push ebx
call sub.GDI32.dll_SetBkMode
mov dword [ebp - 0x28], 0x76e
lea eax, [ebp - 0x184]
push eax
lea edx, [ebp - 0x1ac]
push edx
call sub.USER32.dll_CopyRect
test esi, 1
jne 0x402261
test esi, 0x1000
je 0x40225a
add dword [ebp - 0x1a8], 2
jmp 0x402261
add dword [ebp - 0x1a8], 9
lea ecx, [ebp - 0x1ac]
push ecx
lea eax, [ebp - 0x19c]
push eax
call sub.USER32.dll_CopyRect
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x19c]
or edx, 0x400
lea eax, [ebp - 0x14c]
push edx
push ecx
push eax
call fcn.004d2f1c
pop ecx
push eax
lea edx, [ebp - 0x14c]
push edx
push ebx
call sub.USER32.dll_DrawTextA
mov ecx, dword [ebp - 0x194]
mov esi, dword [ebp - 0x19c]
sub ecx, esi
mov edx, dword [ebp - 0x1a4]
mov esi, edx
mov eax, dword [ebp - 0x1ac]
sub esi, eax
cmp ecx, esi
jle 0x4022d0
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x194], edx
jmp 0x4022e2
add eax, 0xf
add edx, 0xffffffe7
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x194], edx
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0x190]
mov esi, dword [ebp - 0x198]
sub ecx, esi
sub edx, eax
sub edx, ecx
sar edx, 1
jns 0x402307
adc edx, 0
add edx, eax
mov dword [ebp - 0x198], edx
cmp eax, edx
jle 0x402319
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x28], 0x78c
push 8
call sub.USER32.dll_GetSysColor
push eax
push ebx
call sub.GDI32.dll_SetTextColor
mov edx, dword [ebp - 0x44]
push edx
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x19c]
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x14c]
push ecx
push eax
push edx
call fcn.004d2f1c
pop ecx
push eax
lea ecx, [ebp - 0x14c]
push ecx
push ebx
call sub.USER32.dll_DrawTextA
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov dword [ebp - 0x28], 0x796
push 0xcc0020
push 0
push 0
push ebx
mov edx, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x180]
sub edx, ecx
push edx
mov eax, dword [ebp - 0x17c]
mov edx, dword [ebp - 0x184]
sub eax, edx
push eax
push 0
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call sub.GDI32.dll_BitBlt
mov eax, dword [ebp - 0x40]
push eax
push ebx
call sub.GDI32.dll_SelectObject
mov edx, dword [ebp - 0x3c]
push edx
call sub.GDI32.dll_DeleteObject
push ebx
call sub.GDI32.dll_DeleteDC
lea ecx, [ebp - 0x18c]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_EndPaint
mov word [ebp - 0x14], 0
jmp 0x402407
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
mov esp, ebp
mov edi, dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x1b4]
mov ebx, dword [ebp - 0x1b0]
pop ebp
ret