Function at 0x1000e310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x450
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1003c430
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x45c]
push 4
push str.HOMEUSERPROFILElibrary_std_src_syspalwindowspath.rs
push eax
call sym.kso.dll_std::env::_var_os::h269c532d709873f8
add esp, 0xc
cmp dword [ebp - 0x45c], 0x80000000
jne 0x1000e399
lea eax, [ebp - 0x38]
push 0xb
push 0x10080d04
push eax
call sym.kso.dll_std::env::_var_os::h269c532d709873f8
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
cmp eax, 0x80000000
je 0x1000e3c0
mov ecx, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x34]
mov dword [esi + 0xc], ecx
movsd qword [esi + 4], xmm0
mov dword [esi], eax
jmp 0x1000e59d
movsd xmm0, qword [ebp - 0x45c]
movsd xmm1, qword [ebp - 0x454]
movsd qword [ebp - 0x30], xmm1
movsd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
cmp eax, 0x80000000
jne 0x1000e382
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000e505
mov eax, dword [ebp - 0x40]
mov esi, 0x200
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x28], eax
cmp esi, 0x201
jae 0x1000e440
jmp 0x1000e42e
jbe 0x1000e510
cmp esi, 0x201
jae 0x1000e440
mov dword [ebp - 0x3c], 0x200
lea ebx, [ebp - 0x45c]
mov edi, esi
jmp 0x1000e471
mov edi, dword [ebp - 0x20]
sub esi, edi
je 0x1000e465
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x4c]
mov edx, edi
push esi
call fcn.1007b250
add esp, 4
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x1000e4a0
mov esi, dword [ebp - 0x38]
dec esi
test esi, esi
jne 0x1000e4d0
jmp 0x1000e4c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000e4c0
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x1000e4d0
nop word cs:[eax + eax]
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test eax, eax
jne 0x1000e5b3
cmp esi, edi
jne 0x1000e420
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000e5d7
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1000e42e
jmp 0x1000e440
mov dword [esi], closesocket
jmp 0x1000e59d
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 1
cmp esi, eax
ja 0x1000e5f4
push esi
push ebx
lea eax, [ebp - 0x38]
push eax
call sym.kso.dll___std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::hd1f87d65064ecb80
add esp, 0xc
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
movsd qword [ebp - 0x54], xmm1
movsd qword [ebp - 0x5c], xmm0
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
test eax, eax
je 0x1000e55e
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call sym.kso.dll___rust_dealloc
add esp, 0xc
cmp dword [ebp - 0x5c], 0x80000000
jne 0x1000e581
lea ecx, [ebp - 0x5c]
mov dword [esi], closesocket
mov dword [ebp - 0x10], 0
call fcn.10004b90
mov esi, dword [ebp + 8]
jmp 0x1000e594
movsd xmm0, qword [ebp - 0x5c]
movsd xmm1, qword [ebp - 0x54]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x450
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], closesocket
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1000e54e
jmp 0x1000e55e
mov dword [ebp - 0x10], 1
push 0x100815a8
push 0x28
push str.internal_error:_entered_unreachable_codel
call sym.kso.dll_core::panicking::panic::hd53872080d8d36e0
add esp, 0xc
jmp 0x1000e603
push 0x10081598
push eax
push esi
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
add esp, 0xc
ud2