Function at 0x10036e60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
lea eax, [esp + 0x4c]
push 4
push str.HOMEUSERPROFILE.pipe__rust_anonymous_pipe1__.
push eax
call sym.std::env::_var_os::hb160a6e8c3217c1e
add esp, 0xc
cmp dword [esp + 0x4c], 0x80000000
lea eax, [esp + 0x18]
jne 0x10036ec9
push 0xb
push 0x1012d638
push eax
call sym.std::env::_var_os::hb160a6e8c3217c1e
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
cmp edx, 0x80000000
je 0x10036ef0
mov ecx, dword [esp + 0x24]
movq xmm0, qword [esp + 0x1c]
mov dword [eax + 0xc], ecx
movq qword [eax + 4], xmm0
mov dword [eax], edx
jmp 0x100370f1
movq xmm0, qword [esp + 0x4c]
movsd xmm1, qword [esp + 0x54]
movsd qword [esp + 0x20], xmm1
movq qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
cmp edx, 0x80000000
jne 0x10036eb0
mov esi, 0x200
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 2
cmp esi, 0x201
jae 0x10036f50
jmp 0x10036f3e
jbe 0x10037013
cmp esi, 0x201
jae 0x10036f50
mov dword [esp + 0x2c], 0x200
lea edi, [esp + 0x4c]
mov ebx, esi
jmp 0x10036f83
mov ebx, dword [esp + 0x30]
sub esi, ebx
je 0x10036f73
mov edx, ebx
lea ecx, [esp + 0xc]
push esi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h20e2001013f05adb
add esp, 4
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 0
call sub.KERNEL32.dll_SetLastError
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x18]
push eax
push edi
push 0xfffffffffffffffc
call sub.USERENV.dll_GetUserProfileDirectoryW
test eax, eax
je 0x10036fb0
mov esi, dword [esp + 0x18]
dec esi
test esi, esi
jne 0x10036fdf
jmp 0x10036fd0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10036fd0
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x10036fdf
nop word cs:[eax + eax]
nop dword [eax]
call sub.KERNEL32.dll_GetLastError
xor esi, esi
test eax, eax
jne 0x1003707d
cmp esi, ebx
jne 0x10036f30
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x100370f9
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x10036f3e
jmp 0x10036f50
mov eax, dword [esp + 0x2c]
cmp esi, eax
ja 0x1003710f
push esi
push edi
lea eax, [esp + 0x20]
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::hdc9efc66b333cddc
add esp, 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
movq xmm0, qword [esp + 0x20]
test eax, eax
je 0x10037061
add eax, eax
push 2
push eax
push dword [esp + 0x18]
movdqa xmmword [esp + 0x3c], xmm0
call sym.___rust_dealloc
movdqa xmm0, xmmword [esp + 0x3c]
add esp, 0xc
cmp esi, 0x80000000
jne 0x100370e4
movd edi, xmm0
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
je 0x100370ad
jmp 0x100370f1
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003709d
add eax, eax
push 2
push eax
push dword [esp + 0x18]
call sym.___rust_dealloc
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x100370f1
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x100370be
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x100370d2
push dword [esi + 8]
push eax
push ebx
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x100370f1
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1012dd50
push 0x28
push str.internal_error:_entered_unreachable_code_f
call sym.core::panicking::panic::h2de0902fd6c3d9b1
add esp, 0xc
jmp 0x1003711e
push 0x1012dd40
push eax
push esi
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
add esp, 0xc
ud2