Function at 0x40f190
Capabilities:
Create process on windows
Get common file path
Get startup folder
Read file on windows
Read pipe
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a5b2a
mov eax, dword fs:[0]
push eax
mov eax, 0x15d8
call fcn.00455d00
mov eax, dword [0x4ccecc]
xor eax, esp
mov dword [esp + 0x15d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ccecc]
xor eax, esp
push eax
lea eax, [esp + 0x15ec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x15fc]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, 7
xor edx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x16c], eax
mov dword [esp + 0x168], ebx
mov word [esp + 0x158], dx
mov esi, 1
mov dword [esp + 0x15f4], esi
mov dword [esp + 0x188], eax
xor eax, eax
mov dword [esp + 0x184], ebx
mov word [esp + 0x174], ax
mov byte [esp + 0x15f4], 2
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x44]
lea edi, [esp + 0x24]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 0xc
call fcn.0040de30
add esp, 0x10
test eax, eax
je 0x40f8c7
push 0x44
lea edx, [esp + 0xb8]
push ebx
push edx
call fcn.00455040
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0xc4], 0x44
mov dword [esp + 0xf0], 0x100
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x3c], eax
cmp eax, ebx
je 0x40f8c7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push esi
push ebx
lea edx, [esp + 0x28]
push edx
call edi
push eax
call edi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40f8c7
push 0x206
lea ecx, [esp + 0x1d2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x1d8], ax
call fcn.00455040
add esp, 0xc
push 0x104
lea edx, [esp + 0x1d0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1cc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x1cc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f392
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1d0]
lea esi, [esp + 0x158]
call fcn.004093f0
push 5
mov eax, str._tool
mov ecx, esi
call fcn.00409310
push 0x206
lea edx, [esp + 0x3da]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3e0], cx
call fcn.00455040
add esp, 0xc
push ebx
push 0x1a
lea eax, [esp + 0x3dc]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 7
xor ecx, ecx
lea eax, [esp + 0x3d4]
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f420
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3d8]
lea esi, [esp + 0x104]
call fcn.004093f0
push 0xf
mov eax, str.Free_CD_Burner
mov ecx, esi
mov byte [esp + 0x15f8], 3
call fcn.00409310
push 9
mov eax, str._tool.exe
mov ecx, esi
call fcn.00409310
push 1
mov eax, 0x4b61b4
lea esi, [esp + 0x158]
call fcn.004093f0
push ebx
lea edx, [esp + 0x104]
push edx
or eax, 0xffffffff
call fcn.00409250
push 1
mov eax, 0x4b61b4
mov ecx, esi
call fcn.00409310
mov eax, ebp
lea ecx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40f4a0
sub eax, ecx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x174]
call fcn.004093f0
xor eax, eax
mov word [esp + 0x120], ax
push 3
mov eax, 0x4b61b8
lea esi, [esp + 0x120]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
call fcn.004093f0
mov ecx, esi
push ecx
lea edx, [esp + 0x158]
push edx
lea edi, [esp + 0xa0]
mov byte [esp + 0x15fc], 4
call fcn.0040b9b0
push eax
mov ebx, 0x4b61c8
lea esi, [esp + 0x88]
mov byte [esp + 0x1600], 5
call fcn.0040b8f0
lea ecx, [esp + 0x17c]
push ecx
push eax
lea edi, [esp + 0x74]
mov byte [esp + 0x1608], 6
call fcn.0040b9b0
push eax
mov ebx, 0x4b61c0
lea esi, [esp + 0x150]
mov byte [esp + 0x160c], 7
call fcn.0040b8f0
add esp, 0x18
mov esi, 8
cmp dword [esp + 0x78], esi
jb 0x40f571
mov edx, dword [esp + 0x64]
push edx
call fcn.00442977
add esp, 4
mov ebp, 7
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
cmp dword [esp + 0x94], esi
jb 0x40f5a0
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], dx
mov byte [esp + 0x15f4], 0xb
cmp dword [esp + 0xb0], esi
jb 0x40f5d9
mov eax, dword [esp + 0x9c]
push eax
call fcn.00442977
add esp, 4
mov eax, dword [esp + 0x13c]
xor ecx, ecx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], cx
cmp dword [esp + 0x150], esi
jae 0x40f608
lea eax, [esp + 0x13c]
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0xb8]
push ecx
push ebx
push ebx
push 0x8000200
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f6ca
cmp dword [esp + 0x150], esi
jb 0x40f649
mov edx, dword [esp + 0x13c]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
mov dword [esp + 0x150], ebp
mov dword [esp + 0x14c], ebx
mov word [esp + 0x13c], ax
cmp dword [esp + 0x134], esi
jb 0x40f67a
mov ecx, dword [esp + 0x120]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esp + 0x134], ebp
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], dx
cmp dword [esp + 0x118], esi
jb 0x40f6ab
mov eax, dword [esp + 0x104]
push eax
call fcn.00442977
add esp, 4
xor ecx, ecx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebp
mov word [esp + 0x104], cx
xor ebx, ebx
jmp 0x40f8cc
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x18], ebx
call edi
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x1c], ebx
call edi
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x24], ebx
call edi
push 0x1001
lea eax, [esp + 0x5e0]
push ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.00455040
add esp, 0xc
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x24], ebx
jmp 0x40f725
mov esi, 8
mov ecx, dword [esp + 0x4c]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40f741
sub dword [esp + 0x30], 1
js 0x40f830
mov ecx, dword [esp + 0x28]
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push 0x1000
lea eax, [esp + 0x5ec]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x40f830
cmp dword [esp + 0x24], ebx
je 0x40f725
mov ecx, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x28]
push edx
push 0x1000
lea eax, [esp + 0x5e8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f830
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40f830
lea edx, [esp + 0x5dc]
push str.Invalid_data
push edx
mov byte [esp + eax + 0x5e4], bl
call fcn.0044e5d0
add esp, 8
test eax, eax
jne 0x40f830
lea eax, [esp + 0x5dc]
push str.Duration:
push eax
call fcn.0044e5d0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40f720
push 0x3f
lea ecx, [esp + 0x191]
push ebx
push ecx
call fcn.00455040
mov eax, dword [esi + 0xe]
mov edx, dword [esi + 0xa]
mov dword [esp + 0x19c], eax
lea eax, [esp + 0x198]
mov dword [esp + 0x198], edx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f810
sub eax, edx
push eax
lea ecx, [esp + 0x190]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004090e0
jmp 0x40f720
cmp dword [esp + 0x150], esi
jb 0x40f849
mov edx, dword [esp + 0x13c]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
mov dword [esp + 0x150], ebp
mov dword [esp + 0x14c], ebx
mov word [esp + 0x13c], ax
cmp dword [esp + 0x134], esi
jb 0x40f87a
mov ecx, dword [esp + 0x120]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esp + 0x134], ebp
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], dx
cmp dword [esp + 0x118], esi
jb 0x40f8ab
mov eax, dword [esp + 0x104]
push eax
call fcn.00442977
add esp, 4
xor ecx, ecx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebp
mov word [esp + 0x104], cx
xor ebx, ebx
jmp 0x40f8d2
mov esi, 8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x40f8dd
push eax
call edi
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x40f8e8
push eax
call edi
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x40f8f3
push eax
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f8fe
push eax
call edi
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40f909
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40f914
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40f91f
push eax
call edi
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40f92a
push eax
call edi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40f935
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40f940
push eax
call edi
cmp dword [esp + 0x188], esi
jb 0x40f959
mov edx, dword [esp + 0x174]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
mov dword [esp + 0x188], 7
mov dword [esp + 0x184], ebx
mov word [esp + 0x174], ax
cmp dword [esp + 0x16c], esi
jb 0x40f98e
mov ecx, dword [esp + 0x158]
push ecx
call fcn.00442977
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x15ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x15d0]
xor ecx, esp
call fcn.0044e200
add esp, 0x15e4
ret 4