Function at 0x140018c60
Capabilities:
Create directory
Get common file path
Move file
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x1d0
mov rax, qword [0x140067008]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movsxd rbx, ecx
lea rdx, str.VentoyStartService_..._n
mov ecx, 1
call fcn.140001c50
test ebx, ebx
js 0x140018f96
cmp ebx, dword [0x140069b10]
jge 0x140018f96
imul rsi, rbx, 0x20c
add rsi, qword [0x140069a80]
je 0x140018f96
movsx r8d, byte [rsi]
lea r9, [rsi + 0xc4]
mov qword [rsp + 0x1e8], rdi
lea rdx, str.Start_service_at__C:__s__s_..._n
lea rdi, [rsi + 0x1c4]
mov ecx, 1
mov qword [rsp + 0x20], rdi
call fcn.140001c50
movzx eax, byte [rsi]
lea r8, [rsi + 0x44]
mov byte [0x1400712e0], al
lea rcx, [0x1400715b4]
mov word [0x1400712e1], 0x5c3a
mov edx, 0x40
mov byte [0x1400712e3], 0
mov eax, dword [rsi + 0x40]
mov dword [0x1400715b0], eax
mov eax, dword [rsi + 0x204]
mov dword [0x140071774], eax
mov eax, dword [rsi + 0x208]
mov dword [0x140071778], eax
call fcn.140031660
lea r8, [rsi + 0x84]
mov edx, 0x40
lea rcx, [0x1400715f4]
call fcn.140031660
lea r8, [rsi + 0xc4]
mov edx, 0x100
lea rcx, [0x140071634]
call fcn.140031660
mov r8, rdi
lea rcx, [0x140071734]
mov edx, 0x40
call fcn.140031660
lea rbx, [0x1400712e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov r9, rbx
lea rdx, str.SetCurrentDirectoryA__u___s__n
mov r8d, eax
mov ecx, 1
call fcn.140001c50
lea rdx, [rsp + 0xb0]
mov byte [rsp + 0xb0], 0
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea r8, [rsp + 0xb0]
mov ecx, 1
lea rdx, str.CurDir__s__n
call fcn.140001c50
mov rdi, qword [rsp + 0x1e8]
lea rdx, [rsp + 0xb0]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140018e02
inc rbx
test eax, eax
jne 0x140018df0
test ecx, ecx
je 0x140018e17
lea rdx, str.Failed_to_change_current_directory.
mov ecx, 1
call fcn.140001c50
lea rcx, str.ventoy
mov byte [0x1400712e2], 0
call fcn.140002740
test eax, eax
je 0x140018f27
cmp dword [0x1400715b0], 0
mov ecx, 1
je 0x140018f1e
lea rdx, str.ventoy_directory_already_exist__check_case_sensitive._n
call fcn.140001c50
lea r8, str.ventoy
mov edx, 0x80
lea rcx, [rsp + 0x30]
call fcn.140031660
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400024d0
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, str.ventoy_path_case_actual_path_is___s___count:_d__n
mov ecx, 1
mov ebx, eax
call fcn.140001c50
test ebx, ebx
je 0x140018f4b
lea r9, str.ventoy
mov ecx, 1
lea r8, [rsp + 0x30]
lea rdx, str.ventoy_directory_case_mismatch__rename__s______s__n
call fcn.140001c50
lea rdx, str.ventoy
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x140018ee7
lea r9, str.ventoy
mov ecx, 1
lea r8, [rsp + 0x30]
lea rdx, str.Rename___s______s__success_n
call fcn.140001c50
jmp 0x140018f4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ventoy
mov ecx, 1
lea r8, [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea rdx, str.Rename___s______s__failed__u_n
call fcn.140001c50
mov rdx, qword [0x140069a98]
mov r8, qword [rdx]
mov rdx, qword [rdx + 0x20]
jmp 0x140018f88
lea rdx, str.ventoy_directory_already_exist__no_need_to_check_case_sensitive._n
jmp 0x140018f46
xor edx, edx
lea rcx, str.ventoy
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140018f60
lea rdx, str.Create_ventoy_directory_success._n
mov ecx, 1
call fcn.140001c50
lea rdx, [0x14007179c]
lea rcx, [0x14007177c]
call fcn.14002a980
jmp 0x140018f9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Create_ventoy_directory_failed__u._n
mov ecx, 1
mov r8d, eax
call fcn.140001c50
mov rdx, qword [0x140069a98]
mov r8, qword [rdx]
mov rdx, qword [rdx + 0x18]
mov r9d, reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14002b5c0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1d0
pop rsi
ret