Function at 0x1000e240
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], 0x1003c370
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 0x1000e2c9
lea eax, [ebp - 0x38]
push 0xb
push 0x10081d04
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 0x1000e2f0
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 0x1000e4cd
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 0x1000e2b2
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 0x1000e435
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 0x1000e370
jmp 0x1000e35e
jbe 0x1000e440
cmp esi, 0x201
jae 0x1000e370
mov dword [ebp - 0x3c], 0x200
lea ebx, [ebp - 0x45c]
mov edi, esi
jmp 0x1000e3a1
mov edi, dword [ebp - 0x20]
sub esi, edi
je 0x1000e395
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x4c]
mov edx, edi
push esi
call fcn.1007c190
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 0x1000e3d0
mov esi, dword [ebp - 0x38]
dec esi
test esi, esi
jne 0x1000e400
jmp 0x1000e3f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000e3f0
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x1000e400
nop word cs:[eax + eax]
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test eax, eax
jne 0x1000e4e3
cmp esi, edi
jne 0x1000e350
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000e507
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x1000e35e
jmp 0x1000e370
mov dword [esi], closesocket
jmp 0x1000e4cd
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 1
cmp esi, eax
ja 0x1000e524
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 0x1000e48e
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 0x1000e4b1
lea ecx, [ebp - 0x5c]
mov dword [esi], closesocket
mov dword [ebp - 0x10], 0
call fcn.10004ac0
mov esi, dword [ebp + 8]
jmp 0x1000e4c4
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 0x1000e47e
jmp 0x1000e48e
mov dword [ebp - 0x10], 1
push 0x100825a8
push 0x28
push str.internal_error:_entered_unreachable_codel
call sym.kso.dll_core::panicking::panic::hd53872080d8d36e0
add esp, 0xc
jmp 0x1000e533
push 0x10082598
push eax
push esi
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
add esp, 0xc
ud2