Function at 0x405f40
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 [0x4705d0]
xor eax, ebp
mov dword [ebp + 0x468], eax
mov eax, dword [ebp + 0x474]
push ebx
push esi
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x47c]
xor ebx, ebx
mov dword [ebp - 0xc], 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.004464f0
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
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.004464f0
mov esi, 0x103
push esi
lea eax, [ebp - 7]
push ebx
push eax
mov byte [ebp - 8], bl
call fcn.004464f0
push esi
lea eax, [ebp + 0xfd]
push ebx
push eax
mov byte [ebp + 0xfc], bl
call fcn.004464f0
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.004464f0
push 0x45afc4
push dword [ebp - 0xc]
call fcn.004010ff
add esp, 0x44
test eax, eax
je 0x4060a5
push dword [ebp - 0xc]
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._1002_7.63], 0x31
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jne 0x40611b
push ebx
push ebx
push 0x45af40
push dword [ebp - 0xc]
call fcn.004428e6
test eax, eax
jne 0x40611b
push esi
lea eax, [ebp + 0x200]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
lea eax, [ebp + 0x200]
mov cl, byte [eax]
cmp cl, bl
je 0x4060de
cmp cl, 0x5c
jne 0x4060a2
mov byte [eax], 0x5f
inc eax
jmp 0x406094
cmp dword [ebp - 0xc], ebx
je 0x4060bb
push 0x45af3c
push dword [ebp - 0xc]
call fcn.00445d80
pop ecx
pop ecx
jmp 0x4060bd
xor eax, eax
cmp eax, ebx
je 0x406052
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 0x406ae7
lea eax, [ebp + 0x200]
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x4725c4], eax
cmp eax, ebx
jne 0x4060d7
lea eax, [ebp + 0x200]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4725c4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4060d7
push 1
call fcn.00447f65
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.004462a8
push 1
push 0x10000
mov dword [0x473bbc], eax
call fcn.004462a8
add esp, 0x10
mov dword [0x473bc0], eax
push 0x102
lea eax, [ebp + 0x200]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
push ebx
push str..EXE
lea eax, [ebp + 0x200]
push eax
call fcn.0043fbb2
push str..INI
lea eax, [ebp + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x200]
push eax
push 0x3f
mov edi, 0x473898
push edi
push 0x4597fe
push str.UserRegistryKey
push 0x45ae4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.vTask
call esi
push edi
mov dword [ebp - 0x14], eax
call esi
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jle 0x4061f0
push edi
jmp 0x4061f5
push str.vTask
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.vTask
push edi
call fcn.00446461
add esp, 0xc
test eax, eax
jne 0x406214
mov byte [0x473898], bl
push ebx
push ebx
push 0x45ae40
push dword [ebp - 0xc]
mov dword [0x472680], ebx
mov byte [ebp + 0xfc], bl
call fcn.004428e6
test eax, eax
je 0x406241
mov byte [0x476259], 0x63
mov byte [0x476258], 0x63
push ebx
push ebx
push 0x45ae3c
push dword [ebp - 0xc]
call fcn.004428e6
test eax, eax
je 0x40626c
push str.SOFTWARE_vTaskLogLevel
push ebx
push ebx
push ebx
push 4
call fcn.0044129f
add esp, 0x14
mov byte [0x476258], bl
push 0x103
lea eax, [ebp + 0xfc]
push eax
push 0x45af40
push dword [ebp - 0xc]
call fcn.004428e6
test eax, eax
je 0x4062a4
cmp byte [ebp + 0xfc], bl
je 0x4062a4
lea eax, [ebp + 0xfc]
push 0x45ae20
push eax
call fcn.004010ff
pop ecx
pop ecx
mov dword [0x472680], 7
cmp byte [ebp + 0xfc], bl
jne 0x4062d0
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.0043e984
push 2
mov dword [0x4725ac], eax
call fcn.0043e984
push 3
mov dword [0x4725b0], eax
call fcn.0043e984
push 4
mov dword [0x4725b8], eax
call fcn.0043e984
push 5
mov dword [0x4725b4], eax
call fcn.0043e984
push 0x459750
push 0x4596d0
push 0x20
push 0x20
push ebx
push 5
push ebx
mov dword [0x4725bc], 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 [0x47248c], eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004464f0
mov eax, dword [ebp - 0x18]
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], 0x40447f
mov dword [ebp - 0x6c], eax
call edi
mov dword [ebp - 0x68], eax
cmp eax, ebx
jne 0x406375
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 - 0x18]
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], 0x593
mov dword [ebp - 0x58], str.vTaskClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x45ae10
call fcn.0044426c
pop ecx
push eax
push 0x45ae00
call fcn.0044426c
pop ecx
push eax
push str.window_top
call fcn.0044426c
pop ecx
push eax
push str.window_left
call fcn.0044426c
mov esi, dword [sym.imp.USER32.dll_SetRect]
pop ecx
push eax
lea eax, [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x1c], ebx
je 0x406420
cmp dword [ebp - 0x20], 5
jl 0x406420
cmp dword [ebp - 0x1c], 5
jl 0x406420
cmp dword [ebp - 0x20], 0x32
jl 0x406420
cmp dword [ebp - 0x1c], 0x32
jge 0x4064b0
push 1
call edi
cmp eax, 0x400
push 1
jg 0x40646a
call edi
cmp eax, 0x400
jle 0x40643f
mov dword [ebp - 0x10], 0x400
jmp 0x406446
push 1
call edi
mov dword [ebp - 0x10], eax
push ebx
call edi
mov ecx, 0x500
cmp eax, ecx
jle 0x406456
mov eax, ecx
jmp 0x406459
push ebx
call edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xffffff9c
push ecx
add eax, 0xffffff9c
push eax
push 0x32
push 0x32
jmp 0x4064aa
call edi
cmp eax, 0x400
jle 0x40647c
mov dword [ebp - 0x10], 0x400
jmp 0x406483
push 1
call edi
mov dword [ebp - 0x10], eax
push ebx
call edi
mov ecx, 0x500
cmp eax, ecx
jle 0x406493
mov eax, ecx
jmp 0x406496
push ebx
call edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xffffff38
push ecx
add eax, 0xffffff38
push eax
push 0x64
push 0x64
lea eax, [ebp - 0x28]
push eax
call esi
push ebx
push dword [ebp - 0x18]
push ebx
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0x2cf0000
push 0x45ae4c
push str.vTaskClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x472420], eax
cmp eax, ebx
jne 0x4064f5
push 0x12030
push str.vTask_Error
push str.Unable_to_start_vTask:_Main_window_launch_error
jmp 0x4060d0
test byte [0x472680], 4
je 0x40650b
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4065b5
push str.window_maximized
call fcn.0044426c
pop ecx
test eax, eax
je 0x40651e
push 3
jmp 0x406524
push dword [ebp + 0x480]
push dword [0x472420]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x472420]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
lea eax, [ebp + 0x448]
push eax
push ebx
call fcn.0040d429
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.0043f04b
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 [0x472434]
call fcn.0041f060
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x4067d3
cmp byte [eax], bl
je 0x4067d3
mov esi, 0x459858
push esi
push eax
call fcn.00445d80
pop ecx
pop ecx
test eax, eax
je 0x4067d3
mov edi, 0x45ad70
push edi
push dword [ebp - 0xc]
call fcn.00445d80
pop ecx
pop ecx
test eax, eax
je 0x4067d3
xor eax, eax
inc eax
push eax
push ebx
push 0x207
lea ecx, [ebp + 0x200]
push ecx
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call fcn.004432d3
cmp byte [ebp + 0x200], bl
je 0x4067d3
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00445d80
pop ecx
pop ecx
test eax, eax
je 0x4067a5
lea eax, [ebp + 0x200]
push eax
call esi
inc eax
cmp eax, 0x3f
jle 0x406651
push 0x3f
pop eax
jmp 0x40665b
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.00445d80
mov byte [eax], bl
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00445d80
add esp, 0x10
inc eax
je 0x4066ea
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00445d80
pop ecx
pop ecx
inc eax
push eax
call esi
inc eax
test eax, eax
jle 0x4066ea
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00445d80
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x200]
push edi
push eax
call fcn.00445d80
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
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.00446570
add esp, 0xc
push 2
push str.__r_n
lea eax, [ebp + 0x200]
push eax
call fcn.0043fbb2
cmp byte [ebp + 0x200], 0x22
je 0x40670f
cmp byte [ebp + 0x200], 0x27
jne 0x40671e
push 5
push ebx
lea eax, [ebp + 0x200]
push eax
call fcn.0043fbb2
lea eax, [ebp + 0x200]
dec eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x200]
push eax
call esi
mov ecx, dword [ebp - 0x14]
cmp byte [eax + ecx], 0x22
je 0x40674c
lea eax, [ebp + 0x200]
push eax
call esi
mov ecx, dword [ebp - 0x14]
cmp byte [eax + ecx], 0x27
jne 0x40675b
push 6
push ebx
lea eax, [ebp + 0x200]
push eax
call fcn.0043fbb2
cmp byte [ebp + 0x408], 0x25
lea eax, [ebp + 0x409]
je 0x406770
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.0044129f
add esp, 0x14
inc dword [ebp - 0x10]
push 1
push ebx
push 0x207
lea eax, [ebp + 0x200]
push eax
push dword [ebp - 0x10]
push 0x459858
push dword [ebp - 0xc]
call fcn.004432d3
cmp byte [ebp + 0x200], bl
jne 0x406626
test byte [0x472680], 1
je 0x406804
cmp byte [ebp + 0xfc], bl
je 0x406804
push ebx
push ebx
lea eax, [ebp + 0xfc]
push eax
call fcn.0040594f
cmp eax, 1
jge 0x406804
test byte [0x472680], 4
jne 0x4060d7
cmp dword [0x472680], 7
jne 0x40682d
cmp byte [ebp + 0xfc], bl
je 0x4060d7
lea eax, [ebp + 0xfc]
push eax
call fcn.0040bf89
test eax, eax
je 0x4060d7
mov eax, dword [0x472674]
imul eax, eax, 0x104
cmp byte [eax + 0x472858], bl
je 0x4068e2
test byte [0x472680], 2
je 0x4068e2
push 0x1f
lea eax, [ebp + 0x200]
push eax
push 0x45ad4c
push dword [ebp - 0xc]
xor esi, esi
call fcn.004428e6
test eax, eax
je 0x406885
cmp byte [ebp + 0x200], bl
je 0x406885
lea eax, [ebp + 0x200]
push eax
call fcn.0040109c
mov esi, eax
pop ecx
dec esi
test byte [0x472680], 4
je 0x4068bc
push str.Output
push str.vTaskDocker
call fcn.00440f08
push 0x51c
push 5
push eax
mov dword [0x472460], eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x472460], eax
push 0x1f4
push esi
push 1
push 0x405
push dword [0x472420]
push dword [0x472674]
call fcn.00436f39
test eax, eax
je 0x4060d7
push 0x594
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x14], eax
jmp 0x406a89
cmp eax, 0xffffffff
je 0x406a9e
cmp dword [ebp - 0x48], 0x100
je 0x406917
cmp dword [ebp - 0x48], 0x104
jne 0x4069ab
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 al, cl
xor esi, esi
cmp dword [esi*4 + 0x4726a0], ebx
je 0x40697f
cmp al, byte [esi + 0x4727e0]
jne 0x40697f
mov cl, byte [esi + 0x4727a0]
cmp cl, bl
je 0x40697f
movzx ecx, cl
cmp dword [ebp - 0x44], ecx
je 0x406987
inc esi
cmp esi, 0x40
jl 0x40695c
jmp 0x4069a2
movzx eax, word [esi*4 + 0x4726a0]
push ebx
push eax
push 0x111
push dword [0x472420]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp esi, 0x40
jl 0x406a89
mov eax, dword [0x47247c]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
je 0x4069c1
push eax
call esi
test eax, eax
jne 0x4069e1
cmp dword [ebp - 0x14], ebx
je 0x4069e1
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x14]
push dword [0x472420]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x406a89
mov eax, dword [0x472420]
cmp eax, ebx
je 0x406a09
push eax
call esi
test eax, eax
je 0x406a09
lea eax, [ebp - 0x4c]
push eax
push dword [0x472420]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x406a89
mov eax, dword [0x47247c]
cmp eax, ebx
je 0x406a2d
push eax
call esi
test eax, eax
je 0x406a2d
lea eax, [ebp - 0x4c]
push eax
push dword [0x47247c]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x406a89
mov eax, dword [0x472448]
cmp eax, ebx
je 0x406a51
push eax
call esi
test eax, eax
je 0x406a51
lea eax, [ebp - 0x4c]
push eax
push dword [0x472448]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x406a89
mov eax, dword [0x472478]
cmp eax, ebx
je 0x406a75
push eax
call esi
test eax, eax
je 0x406a75
lea eax, [ebp - 0x4c]
push eax
push dword [0x472478]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x406a89
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 0x4068f8
mov eax, dword [0x473bbc]
cmp eax, ebx
je 0x406ab4
push eax
call fcn.00445e06
pop ecx
mov dword [0x473bbc], ebx
mov eax, dword [0x473bc0]
cmp eax, ebx
je 0x406aca
push eax
call fcn.00445e06
pop ecx
mov dword [0x473bc0], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x470008]
cmp eax, 0xef5
jne 0x406ae7
push str.DefaultReturnCode
call fcn.0044426c
pop ecx
mov ecx, dword [ebp + 0x468]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004464bf
add ebp, 0x46c
leave
ret 0x10