Function at 0x401f40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe54
mov eax, 0x4dd21d
push ebx
push esi
push edi
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
lea edi, [ebp - 0x14c]
mov esi, 0x4dd11c
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 0x401fa1
mov byte [ebp - 0x14c], 0
call fcn.00401cc8
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 0x401fdd
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x402408
lea eax, [ebp - 0x184]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_GetClientRect
test eax, eax
jne 0x402000
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x402408
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.00402bdc
pop ecx
mov esi, eax
mov dword [ebp - 0x48], 1
test esi, 0x200
je 0x402069
xor eax, eax
mov dword [ebp - 0x48], eax
test esi, 0x400
je 0x402078
mov dword [ebp - 0x48], 2
or dword [ebp - 0x48], 4
mov edx, dword [0x4dd10c]
test esi, 0x40000
mov dword [ebp - 0x44], edx
je 0x402096
mov ecx, dword [0x4dd110]
mov dword [ebp - 0x44], ecx
test esi, 0x10000
je 0x4020a6
mov eax, dword [0x4dd114]
mov dword [ebp - 0x44], eax
test esi, 0x20000
je 0x4020b7
mov edx, dword [0x4dd118]
mov dword [ebp - 0x44], edx
test esi, 1
je 0x4020fc
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 0x402217
mov dword [ebp - 0x28], 0x71d
test esi, 0x4000
je 0x40211d
push 0x6060ff
push 1
push 0
call sub.GDI32.dll_CreatePen
mov edi, eax
jmp 0x402130
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 0x402208
test esi, 0x1000000
je 0x402198
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 0x4021bb
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.00401d58
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 0x402259
test esi, 0x1000
je 0x402252
add dword [ebp - 0x1a8], 2
jmp 0x402259
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.004cdfec
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 0x4022c8
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x194], edx
jmp 0x4022da
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 0x4022ff
adc edx, 0
add edx, eax
mov dword [ebp - 0x198], edx
cmp eax, edx
jle 0x402311
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.004cdfec
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 0x4023ff
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