Function at 0x406f2a
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 [0x4755d0]
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.00448090
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.00448090
mov esi, 0x103
push esi
lea eax, [ebp - 7]
push ebx
push eax
mov byte [ebp - 8], bl
call fcn.00448090
push esi
lea eax, [ebp + 0xfd]
push ebx
push eax
mov byte [ebp + 0xfc], bl
call fcn.00448090
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.00448090
push 0x45e0f4
push dword [ebp - 0x1c]
call fcn.004010ff
add esp, 0x44
test eax, eax
je 0x407087
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]
lea eax, [ebp + 0x200]
push eax
call fcn.00448491
push 0x45c850
call fcn.00448491
add esp, 0x14
cmp byte [str._1009_7.913], 0x31
jne 0x4070fe
push ebx
push ebx
push 0x45e070
push dword [ebp - 0x1c]
call fcn.004445ba
test eax, eax
jne 0x4070fe
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 0x4070c1
cmp cl, 0x5c
jne 0x407084
mov byte [eax], 0x5f
inc eax
jmp 0x407076
cmp dword [ebp - 0x1c], ebx
je 0x40709d
push 0x45e06c
push dword [ebp - 0x1c]
call fcn.00447a30
pop ecx
pop ecx
jmp 0x40709f
xor eax, eax
cmp eax, ebx
je 0x407036
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
call fcn.00448491
mov dword [esp], 0x45c850
call fcn.00448491
pop ecx
xor eax, eax
jmp 0x407ae4
lea eax, [ebp + 0x200]
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x477344], eax
cmp eax, ebx
jne 0x4070ba
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x477344], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4070ba
push 1
call fcn.00449ab1
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.00447e84
push 1
push 0x10000
mov dword [0x478a40], eax
call fcn.00447e84
add esp, 0x10
push 0x102
mov edi, 0x478938
push edi
push ebx
mov dword [0x478a44], 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.004417cc
push str..ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x3f
push 0x478618
push 0x45c970
push str.UserRegistryKey
push 0x45df8c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.vTask
call esi
push 0x478618
mov dword [ebp - 0x24], eax
call esi
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jle 0x4071cb
push 0x478618
jmp 0x4071d0
push str.vTask
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.vTask
push 0x478618
call fcn.0044802d
add esp, 0xc
test eax, eax
jne 0x4071f3
mov byte [0x478618], bl
cmp byte [0x478938], bl
je 0x407218
push edi
call fcn.0040d00f
test eax, eax
je 0x407218
push edi
call fcn.00401341
pop ecx
mov byte [0x4775a1], 1
cmp eax, 0xa
ja 0x40721e
mov byte [0x4775a1], bl
push ebx
push ebx
push 0x45df88
push dword [ebp - 0x1c]
mov dword [0x477400], ebx
mov byte [ebp + 0xfc], bl
call fcn.004445ba
test eax, eax
je 0x40724b
mov byte [0x47b0e1], 0x63
mov byte [0x47b0e0], 0x63
push ebx
push ebx
push 0x45df84
push dword [ebp - 0x1c]
call fcn.004445ba
test eax, eax
je 0x40726e
push str.SOFTWARE_vTaskLogLevel
call fcn.0040676e
mov byte [0x47b0e0], bl
push 0x103
lea eax, [ebp + 0xfc]
push eax
push 0x45e070
push dword [ebp - 0x1c]
call fcn.004445ba
test eax, eax
je 0x4072a6
cmp byte [ebp + 0xfc], bl
je 0x4072a6
lea eax, [ebp + 0xfc]
push 0x45df68
push eax
call fcn.004010ff
pop ecx
pop ecx
mov dword [0x477400], 7
cmp byte [ebp + 0xfc], bl
jne 0x4072d2
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.004404ea
push 2
mov dword [0x47732c], eax
call fcn.004404ea
push 3
mov dword [0x477330], eax
call fcn.004404ea
push 4
mov dword [0x477338], eax
call fcn.004404ea
push 5
mov dword [0x477334], eax
call fcn.004404ea
push 0x45c780
push 0x45c700
push 0x20
push 0x20
push ebx
push 5
push ebx
mov dword [0x47733c], 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 [0x47720c], eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00448090
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], 0x4024a6
mov dword [ebp - 0x6c], eax
call edi
mov dword [ebp - 0x68], eax
cmp eax, ebx
jne 0x407377
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 0x45df58
call fcn.0040225d
push eax
push ebx
push ebx
push 0x45df48
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 0x407426
cmp dword [ebp - 0x10], 5
jl 0x407426
cmp dword [ebp - 0xc], 5
jl 0x407426
cmp dword [ebp - 0x10], 0x32
jl 0x407426
cmp dword [ebp - 0xc], 0x32
jge 0x4074b6
push 1
call edi
push 1
cmp eax, 0x400
jg 0x407470
call edi
cmp eax, 0x400
jle 0x407445
mov dword [ebp - 0x20], 0x400
jmp 0x40744c
push 1
call edi
mov dword [ebp - 0x20], eax
push ebx
call edi
mov ecx, 0x500
cmp eax, ecx
jle 0x40745c
mov eax, ecx
jmp 0x40745f
push ebx
call edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xffffff9c
push ecx
add eax, 0xffffff9c
push eax
push 0x32
push 0x32
jmp 0x4074b0
call edi
cmp eax, 0x400
jle 0x407482
mov dword [ebp - 0x20], 0x400
jmp 0x407489
push 1
call edi
mov dword [ebp - 0x20], eax
push ebx
call edi
mov ecx, 0x500
cmp eax, ecx
jle 0x407499
mov eax, ecx
jmp 0x40749c
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 0x45df8c
push str.vTaskClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4771a0], eax
cmp eax, ebx
jne 0x4074f1
push str.Unable_to_start_vTask:_Main_window_launch_error
jmp 0x4070a8
test byte [0x477400], 4
push ebx
je 0x407507
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4075b1
push ebx
push str.window_maximized
call fcn.0040225d
test eax, eax
je 0x40751a
push 3
jmp 0x407520
push dword [ebp + 0x480]
push dword [0x4771a0]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4771a0]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
lea eax, [ebp + 0x448]
push eax
push ebx
call fcn.0040e4ce
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.00440c4d
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 [0x4771b4]
call fcn.00420796
add esp, 0x10
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4077cf
cmp byte [eax], bl
je 0x4077cf
mov esi, 0x45c85c
push esi
push eax
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
je 0x4077cf
mov edi, 0x45deb8
push edi
push dword [ebp - 0x1c]
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
je 0x4077cf
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.00444fa4
cmp byte [ebp + 0x200], bl
je 0x4077cf
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00447a30
pop ecx
pop ecx
test eax, eax
je 0x4077a1
lea eax, [ebp + 0x200]
push eax
call esi
inc eax
cmp eax, 0x3f
jle 0x40764d
push 0x3f
pop eax
jmp 0x407657
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.00447a30
mov byte [eax], bl
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00447a30
add esp, 0x10
inc eax
je 0x4076e6
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00447a30
pop ecx
pop ecx
inc eax
push eax
call esi
inc eax
test eax, eax
jle 0x4076e6
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00447a30
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00447a30
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.00448130
add esp, 0xc
push 2
push str.__r_n
lea eax, [ebp + 0x200]
push eax
call fcn.004417cc
cmp byte [ebp + 0x200], 0x22
je 0x40770b
cmp byte [ebp + 0x200], 0x27
jne 0x40771a
push 5
push ebx
lea eax, [ebp + 0x200]
push eax
call fcn.004417cc
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 0x407748
lea eax, [ebp + 0x200]
push eax
call esi
mov ecx, dword [ebp - 0x24]
cmp byte [eax + ecx], 0x27
jne 0x407757
push 6
push ebx
lea eax, [ebp + 0x200]
push eax
call fcn.004417cc
cmp byte [ebp + 0x408], 0x25
lea eax, [ebp + 0x409]
je 0x40776c
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.00442f38
add esp, 0x14
inc dword [ebp - 0x20]
push 1
push ebx
push 0x207
lea eax, [ebp + 0x200]
push eax
push dword [ebp - 0x20]
push 0x45c85c
push dword [ebp - 0x1c]
call fcn.00444fa4
cmp byte [ebp + 0x200], bl
jne 0x407622
test byte [0x477400], 1
je 0x407800
cmp byte [ebp + 0xfc], bl
je 0x407800
push ebx
push ebx
lea eax, [ebp + 0xfc]
push eax
call fcn.00406960
cmp eax, 1
jge 0x407800
test byte [0x477400], 4
jne 0x4070ba
cmp dword [0x477400], 7
jne 0x407829
cmp byte [ebp + 0xfc], bl
je 0x4070ba
lea eax, [ebp + 0xfc]
push eax
call fcn.0040d00f
test eax, eax
je 0x4070ba
mov eax, dword [0x4773f4]
imul eax, eax, 0x104
cmp byte [eax + 0x4775d8], bl
je 0x4078de
test byte [0x477400], 2
je 0x4078de
push 0x1f
lea eax, [ebp + 0x200]
push eax
push 0x45de94
push dword [ebp - 0x1c]
xor esi, esi
call fcn.004445ba
test eax, eax
je 0x407881
cmp byte [ebp + 0x200], bl
je 0x407881
lea eax, [ebp + 0x200]
push eax
call fcn.0040109c
pop ecx
lea esi, [eax - 1]
test byte [0x477400], 4
je 0x4078b8
push str.Output
push str.vTaskDocker
call fcn.00442ba1
push 0x51d
push 5
push eax
mov dword [0x4771e0], eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x4771e0], eax
push 0x1f4
push esi
push 1
push 0x405
push dword [0x4771a0]
push dword [0x4773f4]
call fcn.00438941
test eax, eax
je 0x4070ba
push 0x595
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x24], eax
jmp 0x407a85
cmp eax, 0xffffffff
je 0x407a9a
cmp dword [ebp - 0x48], 0x100
je 0x407913
cmp dword [ebp - 0x48], 0x104
jne 0x4079a7
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 + 0x477420], ebx
je 0x40797b
cmp cl, byte [esi + 0x477560]
jne 0x40797b
mov al, byte [esi + 0x477520]
cmp al, bl
je 0x40797b
movzx eax, al
cmp dword [ebp - 0x44], eax
je 0x407983
inc esi
cmp esi, 0x40
jl 0x407958
jmp 0x40799e
movzx eax, word [esi*4 + 0x477420]
push ebx
push eax
push 0x111
push dword [0x4771a0]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp esi, 0x40
jl 0x407a85
mov eax, dword [0x4771fc]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
je 0x4079bd
push eax
call esi
test eax, eax
jne 0x4079dd
cmp dword [ebp - 0x24], ebx
je 0x4079dd
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x24]
push dword [0x4771a0]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x407a85
mov eax, dword [0x4771a0]
cmp eax, ebx
je 0x407a05
push eax
call esi
test eax, eax
je 0x407a05
lea eax, [ebp - 0x4c]
push eax
push dword [0x4771a0]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407a85
mov eax, dword [0x4771fc]
cmp eax, ebx
je 0x407a29
push eax
call esi
test eax, eax
je 0x407a29
lea eax, [ebp - 0x4c]
push eax
push dword [0x4771fc]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407a85
mov eax, dword [0x4771c8]
cmp eax, ebx
je 0x407a4d
push eax
call esi
test eax, eax
je 0x407a4d
lea eax, [ebp - 0x4c]
push eax
push dword [0x4771c8]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407a85
mov eax, dword [0x4771f8]
cmp eax, ebx
je 0x407a71
push eax
call esi
test eax, eax
je 0x407a71
lea eax, [ebp - 0x4c]
push eax
push dword [0x4771f8]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x407a85
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 0x4078f4
mov eax, dword [0x478a40]
cmp eax, ebx
je 0x407ab0
push eax
call fcn.00447ab6
pop ecx
mov dword [0x478a40], ebx
mov eax, dword [0x478a44]
cmp eax, ebx
je 0x407ac6
push eax
call fcn.00447ab6
pop ecx
mov dword [0x478a44], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x475008]
cmp eax, 0xef5
jne 0x407ae4
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.00448080
add ebp, 0x46c
leave
ret 0x10