Function at 0x405540
Capabilities:
Create process on windows
Get common file path
Get number of processors
Get startup folder
Read file on windows
Read pipe
Resolve function by parsing pe exports
Write and execute a file
Write file on windows
Write file to startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4a68de
mov eax, dword fs:[0]
push eax
mov eax, 0x17ec
call fcn.00455d00
mov eax, dword [0x4ccecc]
xor eax, esp
mov dword [esp + 0x17e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ccecc]
xor eax, esp
push eax
lea eax, [esp + 0x1800]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1810]
mov ebp, dword [esp + 0x1814]
xor ebx, ebx
mov dword [esp + 0x20], eax
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 + 0x70], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
xor esi, esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1b4], ebx
mov word [esp + 0x1a4], dx
mov dword [esp + 0x1808], ebx
mov dword [esp + 0x19c], eax
xor eax, eax
mov dword [esp + 0x198], ebx
mov word [esp + 0x188], ax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1814], 1
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x44]
lea edi, [esp + 0x28]
mov dword [esp + 0x58], 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], 0xc
call fcn.0040de30
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x10
test eax, eax
jne 0x405671
lea ebp, [ebx + 0x57]
jmp 0x40603c
push 0x44
lea edx, [esp + 0xb0]
push ebx
push edx
call fcn.00455040
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebx
push ebx
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0xbc], 0x44
mov dword [esp + 0xe8], 0x100
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x4056d9
mov ebp, 0x57
jmp 0x40603c
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
push 1
push ebx
lea edx, [esp + 0x30]
push edx
call esi
push eax
call esi
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x405709
mov dword [esp + 0x14], 0x57
jmp 0x40602e
push 0x206
lea ecx, [esp + 0x3ea]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x3f0], ax
call fcn.00455040
add esp, 0xc
push 0x104
lea edx, [esp + 0x3e8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x3e4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x3e4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405755
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3e8]
lea esi, [esp + 0x1a4]
call fcn.004093f0
push 5
mov eax, str._tool
mov ecx, esi
call fcn.00409310
push 0x206
lea edx, [esp + 0x1e2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x1e8], cx
call fcn.00455040
add esp, 0xc
push ebx
push 0x1a
lea eax, [esp + 0x1e4]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 7
xor ecx, ecx
lea eax, [esp + 0x1dc]
mov dword [esp + 0x12c], edi
mov dword [esp + 0x128], ebx
mov word [esp + 0x118], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4057e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1e0]
lea esi, [esp + 0x118]
call fcn.004093f0
push 0xf
mov eax, str.Free_CD_Burner
mov ecx, esi
mov byte [esp + 0x180c], 2
call fcn.00409310
push 9
mov eax, str._tool.exe
mov ecx, esi
call fcn.00409310
xor edx, edx
lea eax, [esp + 0x3e4]
mov dword [esp + 0x164], edi
mov dword [esp + 0x160], ebx
mov word [esp + 0x150], dx
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x405850
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x3e8]
lea esi, [esp + 0x150]
call fcn.004093f0
push 1
mov eax, 0x4b61b4
lea esi, [esp + 0x1a4]
mov byte [esp + 0x180c], 3
call fcn.004093f0
push ebx
lea eax, [esp + 0x118]
push eax
or eax, 0xffffffff
call fcn.00409250
push 1
mov eax, 0x4b61b4
mov ecx, esi
call fcn.00409310
xor ecx, ecx
push 5
mov eax, str.__i__
lea esi, [esp + 0xfc]
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], cx
call fcn.004093f0
mov eax, ebp
mov byte [esp + 0x1808], 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4058e5
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea ecx, [esp + 0xfc]
call fcn.00409310
push 2
mov eax, 0x4b61c0
lea ecx, [esp + 0xfc]
call fcn.00409310
call fcn.00418670
test eax, eax
jne 0x4059f1
push 0x104
lea edx, [esp + 0x1e0]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [esp + 0x1de], ax
xor ecx, ecx
lea eax, [esp + 0x1dc]
mov dword [esp + 0x148], edi
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405962
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x1e0]
lea esi, [esp + 0x134]
call fcn.004093f0
push 0x1d
mov eax, str.:WindowsFonts_arial.ttf
mov ecx, esi
mov byte [esp + 0x180c], 5
call fcn.00409310
push 0x17
mov eax, str._vf_drawtextfontfile
lea ecx, [esp + 0xfc]
call fcn.00409310
mov edx, esi
push ebx
push edx
or eax, 0xffffffff
lea esi, [esp + 0x100]
call fcn.00409250
push 0x63
mov eax, str.:text_Free_DVD_Creator_:xW_3:yH_2:fontsize35:fontcolorwhite:shadowy3:box1:boxcolorred_0.4
mov ecx, esi
call fcn.00409310
mov byte [esp + 0x1808], 4
cmp dword [esp + 0x148], 8
jb 0x4059f1
mov eax, dword [esp + 0x134]
push eax
call fcn.00442977
add esp, 4
push 0x1c
mov eax, str._target_ntsc_dvd__threads_4
lea ecx, [esp + 0xfc]
call fcn.00409310
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x98], ebx
jbe 0x405a48
push 3
mov eax, 0x4b6384
lea ecx, [esp + 0xfc]
call fcn.00409310
push ebx
lea ecx, [edi + 0x84]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x100]
call fcn.00409250
push 1
mov eax, 0x4b638c
mov ecx, esi
call fcn.00409310
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x68]
lea ecx, [esp + 0x18c]
call fcn.004083f0
push 0x206
lea eax, [esp + 0x5f2]
xor edx, edx
push ebx
push eax
mov word [esp + 0x5f8], dx
call fcn.00455040
add esp, 0xc
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x6a]
movzx eax, word [esp + 0x68]
movzx ecx, word [esp + 0x66]
push edx
movzx edx, word [esp + 0x68]
push eax
movzx eax, word [esp + 0x6a]
push ecx
movzx ecx, word [esp + 0x6a]
push edx
movzx edx, word [esp + 0x6c]
push eax
push ecx
push edx
push 0x4b6390
lea edx, [esp + 0x60c]
call fcn.00401000
lea eax, [esp + 0x60c]
add esp, 0x20
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405ad0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x5f0]
lea ecx, [esp + 0x188]
call fcn.00409310
lea eax, [esp + 0x184]
mov ebp, edi
push eax
lea ebx, [ebp + 0xa0]
call fcn.00407b30
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x1a4]
push edx
lea edi, [esp + 0x7c]
call fcn.0040b9b0
push eax
mov ebx, 0x4b61c8
lea esi, [esp + 0x9c]
mov byte [esp + 0x1814], 6
call fcn.0040b8f0
add esp, 0xc
lea ecx, [esp + 0x184]
push ecx
push eax
lea edi, [esp + 0x138]
mov byte [esp + 0x1810], 7
call fcn.0040b9b0
push eax
mov ebx, str.___y
lea esi, [esp + 0x174]
mov byte [esp + 0x1814], 8
call fcn.0040b8f0
add esp, 0xc
cmp dword [esp + 0x148], 8
jb 0x405b92
mov edx, dword [esp + 0x134]
push edx
call fcn.00442977
add esp, 4
mov edi, 7
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x148], edi
mov dword [esp + 0x144], ebx
mov word [esp + 0x134], ax
mov esi, 8
cmp dword [esp + 0xa8], esi
jb 0x405bcf
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
mov byte [esp + 0x1808], 0xc
cmp dword [esp + 0x8c], esi
jb 0x405c05
mov eax, dword [esp + 0x78]
push eax
call fcn.00442977
add esp, 4
mov eax, dword [esp + 0x16c]
xor ecx, ecx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
cmp dword [esp + 0x180], esi
jae 0x405c31
lea eax, [esp + 0x16c]
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0xb0]
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 0x405d1d
mov dword [esp + 0x14], 0x57
cmp dword [esp + 0x180], esi
jb 0x405c7a
mov edx, dword [esp + 0x16c]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
mov dword [esp + 0x180], edi
mov dword [esp + 0x17c], ebx
mov word [esp + 0x16c], ax
cmp dword [esp + 0x110], esi
jb 0x405cab
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
cmp dword [esp + 0x164], esi
jb 0x405cdc
mov eax, dword [esp + 0x150]
push eax
call fcn.00442977
add esp, 4
xor ecx, ecx
mov dword [esp + 0x164], edi
mov dword [esp + 0x160], ebx
mov word [esp + 0x150], cx
cmp dword [esp + 0x12c], esi
jb 0x405d0d
mov edx, dword [esp + 0x118]
push edx
call fcn.00442977
add esp, 4
mov dword [esp + 0x12c], 7
jmp 0x40601b
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
mov dword [esp + 0x1c], ebx
call esi
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebx
call esi
push 0x1001
lea edx, [esp + 0x7f8]
push ebx
push edx
mov dword [esp + 0x30], ebx
call fcn.00455040
mov eax, dword [esp + 0x1824]
add esp, 0xc
or eax, dword [esp + 0x181c]
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x28], ebx
mov dword [esp + 0x6c], ebx
jne 0x405d97
mov dword [esp + 0x1818], 1
mov dword [esp + 0x181c], ebx
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405db7
sub dword [esp + 0x20], 1
js 0x405f5e
mov ecx, dword [esp + 0x2c]
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
push 0x1000
lea eax, [esp + 0x804]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x405f5e
cmp dword [esp + 0x28], ebx
je 0x405f2d
mov ecx, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x2c]
push edx
push 0x1000
lea eax, [esp + 0x800]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f5e
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x405f5e
lea edx, [esp + 0x7f4]
push str.Invalid_data
push edx
mov byte [esp + eax + 0x7fc], bl
call fcn.0044e5d0
add esp, 8
test eax, eax
jne 0x405f56
lea eax, [esp + 0x7f4]
push 0x4b63e0
push eax
call fcn.0044e5d0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x405f2d
push 0x20
push esi
call fcn.0044e670
add esp, 8
cmp eax, ebx
je 0x405f2d
mov byte [eax], bl
xor eax, eax
mov dword [esp + 0x1bd], eax
mov dword [esp + 0x1c1], eax
mov dword [esp + 0x1c5], eax
mov dword [esp + 0x1c9], eax
mov dword [esp + 0x1cd], eax
mov dword [esp + 0x1d1], eax
mov dword [esp + 0x1d5], eax
mov word [esp + 0x1d9], ax
mov byte [esp + 0x1db], al
lea eax, [esi + 5]
lea edx, [esp + 0x1bc]
mov byte [esp + 0x1bc], bl
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x405ec7
lea ecx, [esp + 0x1bc]
call fcn.004174d0
mov ecx, eax
mov eax, dword [ebp + 0x58]
mov esi, edx
push esi
cdq
push ecx
push edx
push eax
call fcn.004555c0
push ebx
push 0x64
push edx
push eax
call fcn.004555c0
push ebx
push 0x64
push edx
push eax
call fcn.00455600
mov ecx, dword [esp + 0x181c]
push ecx
mov ecx, dword [esp + 0x181c]
push ecx
push edx
push eax
call fcn.00455600
add eax, dword [ebp + 0x54]
mov edx, dword [esp + 0x70]
push eax
push edx
call fcn.0041c7d0
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffdac9
jne 0x405d9b
mov ecx, dword [esp + 0x34]
push ebx
lea eax, [esp + 0x70]
push eax
push 3
push 0x4b63e8
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x405d9b
mov dword [esp + 0x14], 1
mov esi, 8
cmp dword [esp + 0x180], esi
jb 0x405f7c
mov edx, dword [esp + 0x16c]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0x180], edi
mov dword [esp + 0x17c], ebx
mov word [esp + 0x16c], ax
cmp dword [esp + 0x110], esi
jb 0x405fb2
mov ecx, dword [esp + 0xfc]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], ebx
mov word [esp + 0xfc], dx
cmp dword [esp + 0x164], esi
jb 0x405fe3
mov eax, dword [esp + 0x150]
push eax
call fcn.00442977
add esp, 4
xor ecx, ecx
mov dword [esp + 0x164], edi
mov dword [esp + 0x160], ebx
mov word [esp + 0x150], cx
cmp dword [esp + 0x12c], esi
jb 0x406014
mov edx, dword [esp + 0x118]
push edx
call fcn.00442977
add esp, 4
mov dword [esp + 0x12c], edi
xor eax, eax
mov dword [esp + 0x128], ebx
xor ebx, ebx
mov word [esp + 0x118], ax
mov ebp, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x406047
push eax
call edi
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x406052
push eax
call edi
cmp esi, ebx
je 0x406059
push esi
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x406064
push eax
call edi
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40606f
push eax
call edi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40607a
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x406085
push eax
call edi
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x406090
push eax
call edi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x40609b
push eax
call edi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4060a6
push eax
call edi
mov esi, 8
cmp dword [esp + 0x19c], esi
jb 0x4060c4
mov ecx, dword [esp + 0x188]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esp + 0x19c], 7
mov dword [esp + 0x198], ebx
mov word [esp + 0x188], dx
cmp dword [esp + 0x1b8], esi
jb 0x4060f9
mov eax, dword [esp + 0x1a4]
push eax
call fcn.00442977
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x1800]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17e8]
xor ecx, esp
call fcn.0044e200
add esp, 0x17f8
ret 0x10