Function at 0x408026
Capabilities:
Check if file exists
Create process on windows
Delete file
Get disk information
Get disk size

Disassembly:
mov eax, 0x10f4
call fcn.0042e430
mov eax, dword [0x43b004]
xor eax, esp
mov dword [esp + 0x10ec], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x8fc]
push 0x7fc
push ebx
push eax
mov dword [esp + 0x904], ebx
call fcn.004162b0
xor eax, eax
mov dword [esp + 0xe4], ebx
mov word [esp + 0xb0], ax
lea edi, [esp + 0xb2]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
push 0x204
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0xc0], ax
lea edi, [esp + 0xc2]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xe4]
push eax
call fcn.004162b0
add esp, 0xc
push 0x41c
push dword [0x44437c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push 2
push 0xffffffffffffffff
push 0x100c
push esi
mov dword [esp + 0x24], esi
call ebp
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x40811b
mov edx, 0x435660
mov ecx, 0x4357bc
call fcn.00414a37
push eax
lea eax, [esp + 0x8fc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x8f8]
mov edx, 0x43633c
push 0x30
push eax
mov ecx, 0x4355f8
call fcn.00414a37
jmp 0x4087d1
lea eax, [esp + 0xd8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push edi
push 0x1073
push esi
mov dword [esp + 0x48], 0x104
call ebp
mov ecx, dword [esp + 0xdc]
call fcn.00402177
test eax, eax
lea eax, [esp + 0xd8]
jne 0x40818a
push eax
mov ebx, 0x4355f8
mov edx, 0x436344
push eax
mov ecx, ebx
call fcn.00414a37
push eax
lea eax, [esp + 0x904]
push 0x3fc
push eax
call fcn.0040b4a0
add esp, 0x14
mov edx, 0x435a68
jmp 0x4087c0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push edi
push 0x1073
push esi
mov dword [esp + 0x38], 3
mov dword [esp + 0x48], 0x104
call ebp
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4081df
mov edx, 0x43634c
lea eax, [esp + 0xd8]
mov ebx, 0x4355f8
push eax
mov ecx, ebx
call fcn.00414a37
push eax
push str._s_n_n_s
jmp 0x40816b
lea ecx, [esp + 0xd8]
call fcn.00406017
test eax, eax
jne 0x4081f6
mov edx, 0x435a60
jmp 0x4081c3
lea eax, [esp + 0xa4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push edi
push 0x1073
push esi
mov dword [esp + 0x48], 0x104
call ebp
lea eax, [esp + 0xa4]
mov ebx, 0x4355f8
push eax
mov edx, 0x435f2c
mov ecx, ebx
call fcn.00414a37
push eax
lea eax, [esp + 0x900]
push 0x3fc
push eax
call fcn.0040b4a0
add esp, 0x10
mov dword [esp + 0x28], 3
lea eax, [esp + 0xd8]
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push edi
push 0x1073
push esi
call ebp
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x8fc]
push eax
push str._s_n_n_s
push 0x3fc
push eax
call fcn.0040b4a0
add esp, 0x14
mov edx, 0x4357e4
mov ecx, str.FLDR
push 0x24
call fcn.00414a37
push eax
lea eax, [esp + 0x900]
push eax
push dword [0x44437c]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4087de
lea eax, [esp + 0xb8]
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push edi
push 0x1073
push esi
mov dword [esp + 0x48], 0x104
call ebp
push str.w__ccsUTF_8
lea eax, [esp + 0x20]
push 0x443d60
push eax
call fcn.00419312
add esp, 0xc
test eax, eax
jne 0x408437
cmp dword [esp + 0x1c], eax
je 0x40836c
lea eax, [esp + 0xd8]
push eax
push str.select_vdisk_file__s__n
push dword [esp + 0x24]
call fcn.0040b450
add esp, 0xc
push str.attach_vdisk_n
push dword [esp + 0x20]
call fcn.0040b450
push str.select_part_1_n
push dword [esp + 0x28]
call fcn.0040b450
movzx eax, word [esp + 0xb8]
push eax
push str.assign_letter_C_n
push dword [esp + 0x34]
call fcn.0040b450
add esp, 0x1c
push dword [esp + 0x1c]
call fcn.004193d0
pop ecx
xor eax, eax
xor edi, edi
push 0x40e
mov word [esp + 0x4ec], ax
lea eax, [esp + 0x4ee]
push edi
push eax
call fcn.004162b0
add esp, 0xc
lea eax, [esp + 0x4e8]
push 0x443d60
push str._s___s_
push 0x208
push eax
call fcn.0040b4a0
mov eax, dword [0x44437c]
add esp, 0x10
mov dword [esp + 0x28], eax
xorps xmm0, xmm0
lea eax, [esp + 0x4e8]
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x34], eax
mov eax, dword [0x444380]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x20]
push eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x440
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], str.diskpart.exe
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [esp + 0x58], edi
je 0x40842a
push 0xffffffffffffffff
push dword [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x443d60
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408439
xor edi, edi
lea eax, [esp + 0xa8]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x8fc]
movlpd qword [esp + 0x9c], xmm0
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x5c
pop eax
mov word [esp + 0x8fc], ax
lea eax, [esp + 0x98]
push edi
push eax
push edi
lea eax, [esp + 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x408765
push 7
pop ecx
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], ax
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x20]
push edi
push edi
push edi
push edi
push edi
push 0xf
push eax
lea eax, [esp + 0x914]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40871d
lea eax, [esp + 0x20]
mov dword [esp + 0x64], 1
mov dword [esp + 0x70], eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x1c]
push 0x1074
push esi
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push 0x444170
push edi
push str.VD_DISK
call esi
push 0x444170
push edi
push str.VD_CHECK
call esi
push 0x444170
push edi
push str.VD_LABEL
call esi
push 0x444170
push edi
push str.VD_SIZE
call esi
push 0x444170
push edi
push str.VD_PATH
call esi
mov esi, 0x204
mov dword [esp + 0x4e8], edi
push esi
lea eax, [esp + 0x4f0]
push edi
push eax
call fcn.004162b0
add esp, 0xc
mov dword [esp + 0x2e0], edi
lea eax, [esp + 0x2e4]
push esi
push edi
push eax
call fcn.004162b0
mov esi, dword [esp + 0x20]
add esp, 0xc
push edi
push edi
push 0x1004
push esi
call ebp
mov dword [esp + 0x14], eax
test eax, eax
jle 0x40871d
mov ebx, eax
push 0xa
push 0xa
lea eax, [esp + 0x4f0]
push eax
push edi
call fcn.0041a581
and dword [esp + 0x74], 0
lea eax, [esp + 0x2f0]
add esp, 0x10
mov dword [esp + 0x70], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x74], 0x104
push eax
push edi
push 0x1073
push esi
call ebp
xor eax, eax
mov word [esp + 0x2e6], ax
lea eax, [esp + 0x2e4]
push 0x444170
push eax
lea eax, [esp + 0x4f0]
push eax
push str.VD_DISK
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x2e0]
mov dword [esp + 0x64], 1
mov dword [esp + 0x70], eax
lea eax, [esp + 0x5c]
push eax
push edi
push 0x1073
push esi
mov dword [esp + 0x84], 0x104
call ebp
push 0x444170
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x4f0]
push eax
push str.VD_LABEL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x2e0]
mov dword [esp + 0x64], 2
mov dword [esp + 0x70], eax
lea eax, [esp + 0x5c]
push eax
push edi
push 0x1073
push esi
mov dword [esp + 0x84], 0x104
call ebp
push 0x444170
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x4f0]
push eax
push str.VD_SIZE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x2e0]
mov dword [esp + 0x64], 3
mov dword [esp + 0x70], eax
lea eax, [esp + 0x5c]
push eax
push edi
push 0x1073
push esi
mov dword [esp + 0x84], 0x104
call ebp
push 0x444170
lea eax, [esp + 0x2e4]
push eax
lea eax, [esp + 0x4f0]
push eax
push str.VD_PATH
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0xf000
push edi
push 0x102c
push esi
call ebp
and eax, 0xfffff000
cmp eax, 0x2000
lea eax, [esp + 0x4e8]
push 0x444170
jne 0x4086fe
push 0x435734
jmp 0x408703
push 0x435730
push eax
push str.VD_CHECK
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
inc edi
cmp edi, ebx
jl 0x408588
mov ebx, 0x4355f8
call fcn.004053de
mov edx, 0x435c74
mov ecx, ebx
call fcn.00414a37
push eax
lea eax, [esp + 0x8fc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x40
mov edx, 0x435888
mov ecx, ebx
call fcn.00414a37
push eax
lea ecx, [esp + 0x900]
push ecx
push dword [0x44437c]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
inc eax
jmp 0x4087e0
push 0x3f6
push dword [0x44437c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov edi, eax
push 0x1004
push edi
call ebp
mov esi, eax
call fcn.004053de
push 0
push 0
push 0x1004
push edi
call ebp
mov ecx, ebx
mov edx, 0x436374
cmp esi, eax
jl 0x4087a7
mov edx, 0x43637c
call fcn.00414a37
push eax
lea eax, [esp + 0x8fc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov edx, 0x435898
push 0x30
mov ecx, ebx
call fcn.00414a37
push eax
lea eax, [esp + 0x900]
push eax
push dword [0x44437c]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x10fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415673
add esp, 0x10f4
ret