Function at 0x43ef40
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
xor esi, esi
xor ebp, ebp
cmp r8, 0x201
jae 0x43efe0
jmp 0x43efbf
jae 0x43f085
cmp r8, 0x201
jae 0x43efe0
lea r13, [rsp + 0xa8]
mov ebx, 0x200
mov r12, r8
jmp 0x43f026
sub r8, rbp
sub rsi, rbp
cmp rsi, r8
jae 0x43f007
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.0041c200
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
cmp rdi, r15
mov ebp, 0xffffffff
cmovb rbp, rdi
mov qword [rsp + 0x48], rbp
mov rsi, rdi
mov r13, qword [rsp + 0x28]
mov rbx, rbp
mov r12, rbp
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r13
mov edx, r12d
call sub.kernel32.dll_GetWindowsDirectoryW
mov r14d, eax
test eax, eax
jne 0x43f04c
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x43f176
mov r8d, r14d
cmp r12, r8
jne 0x43efb0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x43f19a
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x43efbf
jmp 0x43efe0
cmp rbx, r8
jb 0x43f1b4
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.00429db0
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.004267f0
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x43f0f2
lea rdx, str.exeNULcmd.exe__
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.004278c0
mov rbx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
mov rdx, rbx
call fcn.0044a470
cmp qword [rsp + 0x50], 0
je 0x43f125
mov rcx, qword [0x00bb5140]
xor edx, edx
mov r8, rbx
call sub.kernel32.dll_HeapFree
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x43f161
mov rcx, qword [0x00bb5140]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x43f14e
jmp 0x43f161
lea rcx, str.internal_error:_entered_unreachable_codeuncategorized_errorother_errorout_of_memoryunexpected_end_of_fileunsupportedoperation_interruptedargument_list_too_longinvalid_filenametoo_many_linkscross_device_link_or_renamedeadlockexecutable_file_busyresource_busyfile_too_largefilesystem_quota_exceededseek_on_unseekable_fileno_storage_spacewrite_zerotimed_outinvalid_datainvalid_input_parameterstale_network_file_handlefilesystem_loop_or_indirection_limit__e.g._symlink_loop_read_only_filesystem_or_storage_mediumdirectory_not_emptyis_a_directorynot_a_directoryoperation_would_blockentity_already_existsbroken_pipenetwork_downaddress_not_availableaddress_in_usenot_connectedconnection_abortednetwork_unreachablehost_unreachableconnection_resetconnection_refusedpermission_deniedentity_not_found__os_error
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.0040f020
jmp 0x43f1c9
lea rax, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.0040fed0
ud2