Function at 0x43ff00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x440
lea eax, [ebp - 0x44c]
push 4
push str.HOMEUSERPROFILE_library_std_src_syspalwindowspath.rs
push eax
call dbg._var_os
add esp, 0xc
cmp dword [ebp - 0x44c], 0x80000000
jne 0x43ff65
lea eax, [ebp - 0x2c]
push 0xb
push 0x4c0708
push eax
call dbg._var_os
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
cmp eax, 0x80000000
je 0x43ff8c
mov ecx, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [edi + 0xc], ecx
movsd qword [edi + 4], xmm0
mov dword [edi], eax
jmp 0x440163
movsd xmm0, qword [ebp - 0x44c]
movsd xmm1, qword [ebp - 0x444]
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x2c], xmm0
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
cmp eax, 0x80000000
jne 0x43ff4e
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
push ecx
push 0x20008
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x4400e6
mov eax, dword [ebp - 0x30]
mov esi, 0x200
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x1c], eax
cmp esi, 0x201
jae 0x440020
jmp 0x440001
mov edi, dword [ebp + 8]
jbe 0x4400ee
cmp esi, 0x201
jae 0x440020
mov dword [ebp - 0x14], 0x200
lea ebx, [ebp - 0x44c]
mov edi, esi
jmp 0x44004a
mov edi, dword [ebp - 0x10]
sub esi, edi
je 0x44003e
mov edx, edi
lea ecx, [ebp - 0x3c]
push esi
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
add esp, 4
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push 0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x1c]
call sub.USERENV.dll_GetUserProfileDirectoryW
test eax, eax
je 0x440080
mov esi, dword [ebp - 0x2c]
dec esi
mov eax, dword [ebp - 0x14]
test esi, esi
jne 0x4400b2
jmp 0x4400a0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4400a0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
test esi, esi
jne 0x4400b2
nop word cs:[eax + eax]
nop
call sub.KERNEL32.dll_GetLastError
xor esi, esi
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x440170
cmp esi, edi
jne 0x43fff0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x44018f
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x440001
jmp 0x440020
mov dword [edi], 0x80000000
jmp 0x440163
cmp esi, eax
ja 0x4401a5
push esi
push ebx
lea eax, [ebp - 0x2c]
push eax
call dbg.from_wide
add esp, 0xc
movsd xmm0, qword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x24]
movsd qword [ebp - 0x44], xmm1
movsd qword [ebp - 0x4c], xmm0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x44012f
add eax, eax
push 2
push eax
push dword [ebp - 0x18]
call sym.___rust_dealloc
add esp, 0xc
cmp dword [ebp - 0x4c], 0x80000000
jne 0x440148
mov dword [edi], 0x80000000
lea ecx, [ebp - 0x4c]
call dbg.drop_in_place<core::result::Result<std::path::PathBuf, std::io::error::Error>>
jmp 0x44015b
movsd xmm0, qword [ebp - 0x4c]
movsd xmm1, qword [ebp - 0x44]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
add esp, 0x440
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp + 8]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], 0x80000000
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x44011f
jmp 0x44012f
push 0x4c0fb0
push 0x28
push 0x4bd574
call dbg.panic
add esp, 0xc
jmp 0x4401b4
push 0x4c0fa0
push eax
push esi
call dbg.slice_end_index_len_fail
add esp, 0xc
ud2