Function at 0x43f200
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r14d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r14, 0x201
jae 0x43f280
jmp 0x43f26f
jae 0x43f331
cmp r14, 0x201
jae 0x43f280
lea r15, [rsp + 0x48]
mov r13d, 0x200
mov rbp, r14
jmp 0x43f2cf
sub r14, r12
sub rbx, r12
cmp rbx, r14
jae 0x43f2aa
lea rcx, [rsp + 0x30]
mov rdx, r12
mov r8, r14
call fcn.0041c200
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x40], r12
mov rbx, rdi
mov r15, qword [rsp + 0x20]
mov r13, r12
mov rbp, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, r15
mov edx, ebp
call sub.kernel32.dll_GetSystemDirectoryW
mov esi, eax
test eax, eax
jne 0x43f2f3
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x43f37e
mov r14d, esi
cmp rbp, r14
jne 0x43f260
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x43f3f5
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
cmovae rbp, rax
mov r14, rbp
cmp r14, 0x201
jb 0x43f26f
jmp 0x43f280
cmp r13, r14
jb 0x43f40f
test esi, esi
je 0x43f3a2
lea r12, [r14 + r14]
mov rcx, qword [0x00bb5140]
test rcx, rcx
jne 0x43f366
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x43f423
mov rcx, rax
mov qword [0x00bb5140], rax
xor edx, edx
mov r8, r12
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x43f423
mov rsi, rax
jmp 0x43f3aa
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], 0
test rdi, rdi
jne 0x43f3cd
jmp 0x43f3e0
mov esi, 2
xor r12d, r12d
mov rcx, rsi
mov rdx, r15
mov r8, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x28]
mov qword [rax], r14
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
test rdi, rdi
je 0x43f3e0
mov rcx, qword [0x00bb5140]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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 0x43f430
lea r8, str.library_std_src_sys_windows_mod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r14
mov rdx, r13
call fcn.0040fed0
jmp 0x43f430
mov edx, 2
mov rcx, r12
call fcn.00408470
ud2