Function at 0x42dfe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
lea eax, [ebp - 0x444]
push 4
push str.HOMEUSERPROFILE_library_std_src_syswindowspath.rs
push eax
call sym.std::env::_var_os::hf8496a5912da13ca
add esp, 0xc
cmp byte [ebp - 0x438], 2
jne 0x42e04f
lea eax, [ebp - 0x2c]
push 0xb
push 0x4c3c10
push eax
call sym.std::env::_var_os::hf8496a5912da13ca
add esp, 0xc
movzx eax, byte [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp al, 2
je 0x42e074
mov ecx, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
movzx edi, word [ebp - 0x1f]
movzx edx, byte [ebp - 0x1d]
mov dword [esi + 8], ecx
movsd qword [esi], xmm0
mov word [esi + 0xd], di
mov byte [esi + 0xf], dl
mov byte [esi + 0xc], al
jmp 0x42e290
movsd xmm0, qword [ebp - 0x444]
movsd xmm1, qword [ebp - 0x43c]
movsd qword [ebp - 0x24], xmm1
movsd qword [ebp - 0x2c], xmm0
movzx eax, byte [ebp - 0x20]
mov esi, dword [ebp + 8]
cmp al, 2
jne 0x42e029
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
push ecx
push 0x20008
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x42e1c7
mov eax, dword [ebp - 0x38]
mov edi, 0x200
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], eax
cmp edi, 0x201
jae 0x42e18e
jmp 0x42e0f2
jbe 0x42e1d0
cmp edi, 0x201
jae 0x42e18e
lea esi, [ebp - 0x444]
mov ebx, edi
mov dword [ebp - 0x34], 0x200
push 0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call sub.USERENV.dll_GetUserProfileDirectoryW
test eax, eax
je 0x42e130
mov edi, dword [ebp - 0x2c]
dec edi
test edi, edi
jne 0x42e15f
jmp 0x42e150
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x42e150
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x42e15f
nop word cs:[eax + eax]
nop dword [eax + eax]
call sub.KERNEL32.dll_GetLastError
xor edi, edi
test eax, eax
jne 0x42e29d
cmp edi, ebx
jne 0x42e0e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x42e2b9
lea edi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x42e0f2
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub edi, ebx
sub eax, ebx
cmp eax, edi
jae 0x42e1b3
mov edx, ebx
lea ecx, [ebp - 0x44]
push edi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h3de3c257bacc48ea
add esp, 4
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ebx
jmp 0x42e101
mov byte [esi + 0xc], 2
jmp 0x42e290
mov eax, dword [ebp - 0x34]
cmp edi, eax
ja 0x42e2cf
push edi
push esi
lea eax, [ebp - 0x2c]
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::hb6f6a97bb780d583
add esp, 0xc
mov eax, dword [ebp - 0x28]
movzx edx, word [ebp - 0x1f]
movzx ecx, byte [ebp - 0x1d]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
movzx ebx, byte [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1c], dx
mov byte [ebp - 0x1a], cl
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42e21f
add eax, eax
push 2
push eax
push dword [ebp - 0x14]
call sym.___rust_dealloc
add esp, 0xc
cmp bl, 2
jne 0x42e267
mov esi, dword [ebp + 8]
mov eax, edi
cmp al, 3
mov byte [esi + 0xc], 2
jne 0x42e288
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 4]
mov eax, dword [eax]
push dword [edi]
call eax
add esp, 4
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42e258
push dword [eax + 8]
push ecx
push dword [edi]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x42e288
movzx eax, word [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov bh, byte [ebp - 0x1a]
mov edx, dword [ebp - 0x10]
mov word [ecx + 0xd], ax
mov byte [ecx + 0xf], bh
mov dword [ecx + 4], edx
mov dword [ecx], edi
mov dword [ecx + 8], esi
mov esi, ecx
mov byte [ecx + 0xc], bl
push dword [ebp - 0x30]
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 2
xor edi, edi
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42e20f
jmp 0x42e21f
push 0x4c4450
push 0x28
push str.internal_error:_entered_unreachable_code_b
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
jmp 0x42e2de
push 0x4c4460
push eax
push edi
call sym.core::slice::index::slice_end_index_len_fail::ha90cccd5bd71ac96
add esp, 0xc
ud2