Function at 0x40a008
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [ebp + 0xc]
sub eax, 0xf
push ebx
push esi
push edi
je 0x40a555
sub eax, 0x101
je 0x40a19c
dec eax
je 0x40a0a8
dec eax
dec eax
je 0x40a067
sub eax, 0x25
jne 0x40a7fc
push 0x3f3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 0x14], eax
jne 0x40a7fc
push 1
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [0x41879c]
jmp 0x40a7fe
cmp dword [ebp + 0x10], 0x19
jne 0x40a7fc
inc dword [0x418060]
cmp dword [0x418060], 0x19
jle 0x40a08a
mov dword [0x418060], 1
push 0
push 0x418b80
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x40a7fc
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x40a112
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [0x418784], edi
je 0x40a0c6
push 0x19
push esi
call dword [sym.imp.USER32.dll_KillTimer]
push 4
push dword [0x4186b0]
push dword [0x4186c8]
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40a0f3
push 2
push esi
mov dword [0x418738], 1
call dword [sym.imp.USER32.dll_EndDialog]
cmp dword [0x418784], edi
je 0x40a10a
push edi
push 0x96
push 0x19
push esi
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x40a7fe
xor esi, esi
inc esi
cmp eax, esi
jne 0x40a15c
mov al, byte [0x418b9c]
cmp al, 0xb
jne 0x40a12d
mov dword [0x4186b8], esi
jmp 0x40a7fc
cmp al, 0xd
push dword [ebp + 8]
jne 0x40a145
mov dword [0x4186b8], esi
call fcn.00401313
pop ecx
jmp 0x40a7fc
call fcn.00401313
push esi
call fcn.004011ad
pop ecx
pop ecx
call fcn.004043b2
jmp 0x40a7fc
cmp eax, 5
jne 0x40a16d
push dword [ebp + 8]
call fcn.00401313
push 0
jmp 0x40a14b
cmp eax, 3
jne 0x40a177
push 0xffffffffffffffff
push esi
jmp 0x40a184
cmp eax, 4
jne 0x40a7fc
push 0xffffffffffffffff
push 0
push 0x185
push 0x3eb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x40a7fc
mov edi, dword [ebp + 8]
push edi
call fcn.004032ac
mov dword [esp], 0x3f3
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x40a1cd
mov ecx, dword [0x418b94]
test ecx, ecx
je 0x40a1cd
push 0
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x180]
push eax
push 0x2f
push dword [0x418790]
call fcn.004033e3
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0x10
lea eax, [ebp - 0x180]
push eax
push 5
push edi
call ebx
push esi
lea eax, [ebp - 0x180]
push eax
push 0x30
push dword [0x418790]
call fcn.004033e3
add esp, 0x10
lea eax, [ebp - 0x180]
push eax
push 2
push edi
call ebx
push esi
lea eax, [ebp - 0x180]
push eax
push 0x31
push dword [0x418790]
call fcn.004033e3
add esp, 0x10
lea eax, [ebp - 0x180]
push eax
push 3
push edi
call ebx
push esi
lea eax, [ebp - 0x180]
push eax
push 0x32
push dword [0x418790]
call fcn.004033e3
add esp, 0x10
lea eax, [ebp - 0x180]
push eax
push 4
push edi
call ebx
push esi
lea eax, [ebp - 0x180]
push eax
push dword [0x418ba8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
mov eax, dword [0x418700]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
sub eax, edx
xor esi, esi
push esi
push edx
cdq
sub eax, edx
sar eax, 1
push ecx
push eax
mov eax, dword [0x418680]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [0x418b9c], 0xb
mov dword [0x418794], edi
jne 0x40a304
cmp dword [0x418704], esi
je 0x40a304
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push 1
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 5
push dword [0x418794]
call ebx
push eax
call esi
jmp 0x40a30a
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
call fcn.004043b2
push 0
mov esi, 0xef6
push esi
push dword [0x418794]
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
call ebx
test eax, eax
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebp + 8], eax
je 0x40a376
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [0x418b78], eax
mov eax, dword [ebp - 0x24]
push 0x418b78
inc eax
push edi
mov dword [0x418b7c], eax
call esi
mov eax, dword [ebp - 0x20]
dec eax
mov dword [0x418678], eax
mov eax, dword [ebp - 0x1c]
push 0x418678
dec eax
push edi
mov dword [0x41867c], eax
call esi
xor eax, eax
cmp dword [0x418b00], eax
jne 0x40a3b9
cmp dword [ebp + 8], eax
je 0x40a38f
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3f0
push edi
call ebx
test eax, eax
je 0x40a3a4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3f2
push edi
call ebx
test eax, eax
je 0x40a3b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp dword [0x4186f8], eax
jle 0x40a10a
mov dword [ebp - 0x44], 0x3e8
mov dword [ebp - 0x40], 0x3f4
mov dword [ebp - 0x3c], 0x3e9
mov dword [ebp - 0x38], 0x3f6
mov dword [ebp - 0x34], 0x3f1
mov dword [ebp - 0x30], 0x3f7
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push dword [ebp + eax*4 - 0x44]
push edi
call ebx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
push dword [ebp + eax*4 - 0x40]
push edi
call ebx
mov dword [ebp + 0x14], eax
xor eax, eax
cmp dword [ebp + 8], eax
jne 0x40a455
cmp dword [ebp + 0x10], eax
jne 0x40a45a
push eax
push eax
push 0x31
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x40a46a
lea ecx, [ebp - 0x80]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x40a46a
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x70], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp + 0x10], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x40a46a
push 1
push dword [ebp + 0x10]
push 0x30
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
push edi
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
push edi
call esi
lea eax, [ebp - 8]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
sub eax, dword [ebp - 0xc]
add dword [ebp - 0x14], ecx
push 1
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MoveWindow]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
push edi
call esi
lea eax, [ebp - 8]
push eax
push edi
call esi
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x14
push 1
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_MoveWindow]
add dword [ebp + 8], 2
cmp dword [ebp + 8], 6
jb 0x40a3f7
push 0x3e9
push edi
call ebx
push eax
push 0x3f1
push edi
call ebx
push eax
call fcn.0040110f
pop ecx
pop ecx
push 0x3f6
push edi
call ebx
push eax
push 0x3f7
push edi
call ebx
push eax
call fcn.0040110f
pop ecx
pop ecx
jmp 0x40a10a
cmp dword [0x418440], 0
jne 0x40a57a
push 0
push 0x96
push 0x19
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x418440], 1
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x418b30]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp + 0x10], eax
call esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f2
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call edi
test eax, eax
je 0x40a60f
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0xcc0020
push 0x3f
push 0x1f4
xor eax, eax
push eax
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [0x418b00], 0
jne 0x40a657
push 0x3f0
push dword [ebp + 8]
call edi
push eax
push ebx
push dword [ebp + 8]
call fcn.004026a0
add esp, 0xc
push 0x3f2
push dword [ebp + 8]
call edi
push eax
push ebx
push dword [ebp + 8]
call fcn.004026a0
add esp, 0xc
cmp dword [0x418784], 0
je 0x40a7ec
push dword [ebp + 8]
push ebx
call fcn.004021da
mov eax, dword [0x41867c]
sub eax, dword [0x418b7c]
pop ecx
movzx eax, ax
shl eax, 1
cdq
pop ecx
push 3
pop ecx
idiv ecx
push 0x7f0000
push ebx
mov edi, eax
mov eax, dword [0x418678]
sub eax, dword [0x418b78]
movzx eax, ax
imul eax, dword [0x418b10]
cdq
idiv dword [0x418b70]
movzx eax, ax
mov dword [ebp + 0xc], eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x418b7c]
and dword [ebp + 0x10], 0
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x41867c]
dec eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [0x418b78]
mov dword [ebp - 0x28], eax
jle 0x40a70b
mov eax, dword [ebp - 0x28]
push 0
push 0
lea ecx, [edi + eax - 3]
push 0x41461e
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x28]
push ecx
push 6
push dword [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add dword [ebp + 0x10], edi
mov eax, dword [ebp + 0x10]
add dword [ebp - 0x28], edi
cmp eax, dword [ebp + 0xc]
jl 0x40a6d9
cmp dword [0x418b00], 0
jne 0x40a7ec
mov eax, dword [0x41867c]
inc eax
push eax
mov eax, dword [0x418678]
inc eax
push eax
mov eax, dword [0x418b7c]
dec eax
push eax
mov eax, dword [0x418b78]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [ebp + 0xc], eax
call esi
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 4]
push 0
dec eax
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp - 0x10]
push ebx
call edi
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
dec eax
push eax
push ebx
call edi
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [ebp + 0xc], eax
call esi
push 0
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
dec eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 4]
dec eax
push eax
mov eax, dword [ebp - 8]
dec eax
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
dec eax
push eax
mov eax, dword [ebp - 0x10]
dec eax
push eax
push ebx
call edi
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10