Function at 0x406f48
Capabilities:
Check mutex on windows
Log keystrokes via polling
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x46c]
sub esp, 0x4ec
mov eax, dword [0x47e5d0]
xor eax, ebp
mov dword [ebp + 0x468], eax
mov eax, dword [ebp + 0x474]
push ebx
push esi
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x47c]
xor ebx, ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x48]
push 0x2c
mov dword [ebp - 0x4c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00452e00
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x207
stosd dword es:[edi], eax
lea eax, [ebp + 0x201]
push ebx
push eax
mov byte [ebp + 0x200], bl
call fcn.00452e00
mov esi, 0x103
push esi
lea eax, [ebp - 7]
push ebx
push eax
mov byte [ebp - 8], bl
call fcn.00452e00
push esi
lea eax, [ebp + 0xfd]
push ebx
push eax
mov byte [ebp + 0xfc], bl
call fcn.00452e00
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x448], bl
lea edi, [ebp + 0x449]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
stosb byte es:[edi], al
lea eax, [ebp + 0x409]
push ebx
push eax
mov byte [ebp + 0x408], bl
call fcn.00452e00
push 0x4661fc
push dword [ebp - 0x1c]
call fcn.004010ff
add esp, 0x44
test eax, eax
je 0x4070ab
push dword [ebp - 0x1c]
lea eax, [ebp + 0x200]
push str.The___c__command_line_switch_is_only_available_from_a_console_window_when_using__vTask.com__n_nYour_Command_Line:_____s__n_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x12030
push str.vTask_Error
lea eax, [ebp + 0x200]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp byte [str.1_1005_7.913], 0x31
jne 0x407121
push ebx
push ebx
push 0x466178
push dword [ebp - 0x1c]
call fcn.0044c3c4
test eax, eax
jne 0x407121
push esi
lea eax, [ebp + 0x200]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x200]
mov cl, byte [eax]
cmp cl, bl
je 0x4070e4
cmp cl, 0x5c
jne 0x4070a8
mov byte [eax], 0x5f
inc eax
jmp 0x40709a
cmp dword [ebp - 0x1c], ebx
je 0x4070c1
push 0x466174
push dword [ebp - 0x1c]
call fcn.004526d0
pop ecx
pop ecx
jmp 0x4070c3
xor eax, eax
cmp eax, ebx
je 0x40705a
push 0x12040
push str.Startup_Options
push str.Startup__Command_Line__Options:_n_n_t_L_tTurn_logging_on_n_t_F_tTurn_logging_off_n_t_S__step__tStart_at_Step_n_t__x1_tSet_user_variable_n_nExample:__Program.exe__L___foo_New_Value__t
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x407b11
lea eax, [ebp + 0x200]
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x480264], eax
cmp eax, ebx
jne 0x4070dd
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x480264], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4070dd
push 1
call fcn.00454755
pop ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], 0x7ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 1
push 0x1000
call fcn.00452b24
push 1
push 0x10000
mov dword [0x481960], eax
call fcn.00452b24
add esp, 0x10
push 0x102
mov edi, 0x481858
push edi
push ebx
mov dword [0x481964], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push str..EXE
push edi
call fcn.0044937b
push str..ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x3f
push 0x481538
push 0x464a50
push str.UserRegistryKey
push 0x466084
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.vTask
call esi
push 0x481538
mov dword [ebp - 0x24], eax
call esi
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jle 0x4071ee
push 0x481538
jmp 0x4071f3
push str.vTask
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.vTask
push 0x481538
call fcn.00452ccd
add esp, 0xc
test eax, eax
jne 0x407216
mov byte [0x481538], bl
cmp byte [0x481858], bl
je 0x40723b
push edi
call fcn.00410370
test eax, eax
je 0x40723b
push edi
call fcn.00401341
pop ecx
mov byte [0x4804c1], 1
cmp eax, 0xa
ja 0x407241
mov byte [0x4804c1], bl
push ebx
push ebx
push 0x466080
push dword [ebp - 0x1c]
mov dword [0x480320], ebx
mov byte [ebp + 0xfc], bl
call fcn.0044c3c4
test eax, eax
je 0x40726e
mov byte [0x4840a1], 0x63
mov byte [0x4840a0], 0x63
push ebx
push ebx
push 0x46607c
push dword [ebp - 0x1c]
call fcn.0044c3c4
test eax, eax
je 0x407291
push str.SOFTWARE_vTaskLogLevel
call fcn.0040676e
mov byte [0x4840a0], bl
push 0x103
lea eax, [ebp + 0xfc]
push eax
push 0x466178
push dword [ebp - 0x1c]
call fcn.0044c3c4
test eax, eax
je 0x4072c9
cmp byte [ebp + 0xfc], bl
je 0x4072c9
lea eax, [ebp + 0xfc]
push 0x466060
push eax
call fcn.004010ff
pop ecx
pop ecx
mov dword [0x480320], 7
cmp byte [ebp + 0xfc], bl
jne 0x4072f5
push 0x102
lea eax, [ebp + 0xfc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
call fcn.00448005
push 2
mov dword [0x48024c], eax
call fcn.00448005
push 3
mov dword [0x480250], eax
call fcn.00448005
push 4
mov dword [0x480258], eax
call fcn.00448005
push 5
mov dword [0x480254], eax
call fcn.00448005
push 0x464860
push 0x4647e0
push 0x20
push 0x20
push ebx
push 5
push ebx
mov dword [0x48025c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_CreateCursor]
push 0x30
pop esi
push esi
mov dword [0x48012c], eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00452e00
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
add esp, 0xc
mov dword [ebp - 0x80], esi
mov esi, 0x3e8
push esi
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], 0x40248d
mov dword [ebp - 0x6c], eax
call edi
mov dword [ebp - 0x68], eax
cmp eax, ebx
jne 0x40739a
push 0x7f00
push ebx
call edi
mov dword [ebp - 0x68], eax
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push 0x32
call edi
push eax
push 0x31
call edi
push eax
push 1
push esi
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_LoadImageA]
push 0x7f00
push ebx
mov dword [ebp - 0x54], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x60], 0x10
mov dword [ebp - 0x5c], 0x594
mov dword [ebp - 0x58], str.vTaskClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
push ebx
push ebx
push 0x466050
call fcn.0040225d
push eax
push ebx
push ebx
push 0x466040
call fcn.0040225d
push eax
push ebx
push ebx
push str.window_top
call fcn.0040225d
push eax
push ebx
push ebx
push str.window_left
call fcn.0040225d
mov esi, dword [sym.imp.USER32.dll_SetRect]
push eax
lea eax, [ebp - 0x18]
push eax
call esi
cmp dword [ebp - 0xc], ebx
je 0x407449
cmp dword [ebp - 0x10], 5
jl 0x407449
cmp dword [ebp - 0xc], 5
jl 0x407449
cmp dword [ebp - 0x10], 0x32
jl 0x407449
cmp dword [ebp - 0xc], 0x32
jge 0x4074d9
push 1
call edi
push 1
cmp eax, 0x400
jg 0x407493
call edi
cmp eax, 0x400
jle 0x407468
mov dword [ebp - 0x20], 0x400
jmp 0x40746f
push 1
call edi
mov dword [ebp - 0x20], eax
push ebx
call edi
mov ecx, 0x500
cmp eax, ecx
jle 0x40747f
mov eax, ecx
jmp 0x407482
push ebx
call edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xffffff9c
push ecx
add eax, 0xffffff9c
push eax
push 0x32
push 0x32
jmp 0x4074d3
call edi
cmp eax, 0x400
jle 0x4074a5
mov dword [ebp - 0x20], 0x400
jmp 0x4074ac
push 1
call edi
mov dword [ebp - 0x20], eax
push ebx
call edi
mov ecx, 0x500
cmp eax, ecx
jle 0x4074bc
mov eax, ecx
jmp 0x4074bf
push ebx
call edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xffffff38
push ecx
add eax, 0xffffff38
push eax
push 0x64
push 0x64
lea eax, [ebp - 0x18]
push eax
call esi
push ebx
push dword [ebp - 0x28]
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x2cf0000
push 0x466084
push str.vTaskClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4800c0], eax
cmp eax, ebx
jne 0x40751e
push 0x12030
push str.vTask_Error
push str.Unable_to_start_vTask:_Main_window_launch_error
jmp 0x4070d6
test byte [0x480320], 4
push ebx
je 0x407534
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4075de
push ebx
push str.window_maximized
call fcn.0040225d
test eax, eax
je 0x407547
push 3
jmp 0x40754d
push dword [ebp + 0x480]
push dword [0x4800c0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4800c0]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
lea eax, [ebp + 0x448]
push eax
push ebx
call fcn.0041182f
push str._vTask_Studio
lea eax, [ebp + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp + 0x200]
push eax
call esi
push str._running_on_Microsoft
lea eax, [ebp + 0x200]
push eax
call esi
lea eax, [ebp + 0x448]
push eax
call fcn.004487fc
lea eax, [ebp + 0x448]
push eax
lea eax, [ebp + 0x200]
push eax
call esi
lea eax, [ebp + 0x200]
push eax
push ebx
push 1
push dword [0x4800d4]
call fcn.00424cda
add esp, 0x10
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4077fc
cmp byte [eax], bl
je 0x4077fc
mov esi, 0x46493c
push esi
push eax
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
je 0x4077fc
mov edi, 0x465fb0
push edi
push dword [ebp - 0x1c]
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
je 0x4077fc
xor eax, eax
inc eax
push eax
push ebx
push 0x207
lea ecx, [ebp + 0x200]
push ecx
push eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call fcn.0044cdae
cmp byte [ebp + 0x200], bl
je 0x4077fc
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
je 0x4077ce
lea eax, [ebp + 0x200]
push eax
call esi
inc eax
cmp eax, 0x3f
jle 0x40767a
push 0x3f
pop eax
jmp 0x407684
lea eax, [ebp + 0x200]
push eax
call esi
inc eax
push eax
lea eax, [ebp + 0x200]
push eax
lea eax, [ebp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp + 0x408]
push edi
push eax
call fcn.004526d0
mov byte [eax], bl
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.004526d0
add esp, 0x10
inc eax
je 0x407713
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.004526d0
pop ecx
pop ecx
inc eax
push eax
call esi
inc eax
test eax, eax
jle 0x407713
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.004526d0
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.004526d0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
add esp, 0x10
inc eax
push eax
call esi
inc eax
push eax
mov eax, dword [ebp - 0x50]
inc eax
push eax
lea eax, [ebp + 0x200]
push eax
call fcn.00452ea0
add esp, 0xc
push 2
push str.__r_n
lea eax, [ebp + 0x200]
push eax
call fcn.0044937b
cmp byte [ebp + 0x200], 0x22
je 0x407738
cmp byte [ebp + 0x200], 0x27
jne 0x407747
push 5
push ebx
lea eax, [ebp + 0x200]
push eax
call fcn.0044937b
lea eax, [ebp + 0x200]
dec eax
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x200]
push eax
call esi
mov ecx, dword [ebp - 0x24]
cmp byte [eax + ecx], 0x22
je 0x407775
lea eax, [ebp + 0x200]
push eax
call esi
mov ecx, dword [ebp - 0x24]
cmp byte [eax + ecx], 0x27
jne 0x407784
push 6
push ebx
lea eax, [ebp + 0x200]
push eax
call fcn.0044937b
cmp byte [ebp + 0x408], 0x25
lea eax, [ebp + 0x409]
je 0x407799
lea eax, [ebp + 0x408]
push eax
lea eax, [ebp - 8]
push str.SOFTWARE_vTaskUserVariables_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x200]
push eax
call esi
inc eax
push eax
lea eax, [ebp + 0x200]
push eax
push 1
push 2
call fcn.0044ad45
add esp, 0x14
inc dword [ebp - 0x20]
push 1
push ebx
push 0x207
lea eax, [ebp + 0x200]
push eax
push dword [ebp - 0x20]
push 0x46493c
push dword [ebp - 0x1c]
call fcn.0044cdae
cmp byte [ebp + 0x200], bl
jne 0x40764f
test byte [0x480320], 1
je 0x40782d
cmp byte [ebp + 0xfc], bl
je 0x40782d
push ebx
push ebx
lea eax, [ebp + 0xfc]
push eax
call fcn.00406960
cmp eax, 1
jge 0x40782d
test byte [0x480320], 4
jne 0x4070dd
cmp dword [0x480320], 7
jne 0x407856
cmp byte [ebp + 0xfc], bl
je 0x4070dd
lea eax, [ebp + 0xfc]
push eax
call fcn.00410370
test eax, eax
je 0x4070dd
mov eax, dword [0x480314]
imul eax, eax, 0x104
cmp byte [eax + 0x4804f8], bl
je 0x40790b
test byte [0x480320], 2
je 0x40790b
push 0x1f
lea eax, [ebp + 0x200]
push eax
push 0x465f8c
push dword [ebp - 0x1c]
xor esi, esi
call fcn.0044c3c4
test eax, eax
je 0x4078ae
cmp byte [ebp + 0x200], bl
je 0x4078ae
lea eax, [ebp + 0x200]
push eax
call fcn.0040109c
pop ecx
lea esi, [eax - 1]
test byte [0x480320], 4
je 0x4078e5
push str.Output
push str.vTaskDocker
call fcn.0044a868
push 0x51d
push 5
push eax
mov dword [0x480100], eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x480100], eax
push 0x1f4
push esi
push 1
push 0x405
push dword [0x4800c0]
push dword [0x480314]
call fcn.0043fcd7
test eax, eax
je 0x4070dd
push 0x595
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x24], eax
jmp 0x407ab2
cmp eax, 0xffffffff
je 0x407ac7
cmp dword [ebp - 0x48], 0x100
je 0x407940
cmp dword [ebp - 0x48], 0x104
jne 0x4079d4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
movzx edi, ax
shr edi, 0xf
push 0x10
and edi, 1
call esi
movzx esi, ax
shr esi, 0xf
push 0x12
and esi, 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
shl al, 2
cmp esi, ebx
sete cl
dec cl
and cl, 2
or al, cl
cmp edi, ebx
setne cl
or cl, al
xor esi, esi
cmp dword [esi*4 + 0x480340], ebx
je 0x4079a8
cmp cl, byte [esi + 0x480480]
jne 0x4079a8
mov al, byte [esi + 0x480440]
cmp al, bl
je 0x4079a8
movzx eax, al
cmp dword [ebp - 0x44], eax
je 0x4079b0
inc esi
cmp esi, 0x40
jl 0x407985
jmp 0x4079cb
movzx eax, word [esi*4 + 0x480340]
push ebx
push eax
push 0x111
push dword [0x4800c0]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp esi, 0x40
jl 0x407ab2
mov eax, dword [0x48011c]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
je 0x4079ea
push eax
call esi
test eax, eax
jne 0x407a0a
cmp dword [ebp - 0x24], ebx
je 0x407a0a
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x24]
push dword [0x4800c0]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x407ab2
mov eax, dword [0x4800c0]
cmp eax, ebx
je 0x407a32
push eax
call esi
test eax, eax
je 0x407a32
lea eax, [ebp - 0x4c]
push eax
push dword [0x4800c0]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407ab2
mov eax, dword [0x48011c]
cmp eax, ebx
je 0x407a56
push eax
call esi
test eax, eax
je 0x407a56
lea eax, [ebp - 0x4c]
push eax
push dword [0x48011c]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407ab2
mov eax, dword [0x4800e8]
cmp eax, ebx
je 0x407a7a
push eax
call esi
test eax, eax
je 0x407a7a
lea eax, [ebp - 0x4c]
push eax
push dword [0x4800e8]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407ab2
mov eax, dword [0x480118]
cmp eax, ebx
je 0x407a9e
push eax
call esi
test eax, eax
je 0x407a9e
lea eax, [ebp - 0x4c]
push eax
push dword [0x480118]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407ab2
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, ebx
jne 0x407921
mov eax, dword [0x481960]
cmp eax, ebx
je 0x407add
push eax
call fcn.00452756
pop ecx
mov dword [0x481960], ebx
mov eax, dword [0x481964]
cmp eax, ebx
je 0x407af3
push eax
call fcn.00452756
pop ecx
mov dword [0x481964], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x47e008]
cmp eax, 0xef5
jne 0x407b11
push ebx
push ebx
push str.DefaultReturnCode
call fcn.0040225d
mov ecx, dword [ebp + 0x468]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452dee
add ebp, 0x46c
leave
ret 0x10