Function at 0x46f2e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511081
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x55300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x250], 0
push eax
push 0x52ad90
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00406c50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x248]
mov edx, 0x80000001
cmovae eax, dword [ebp - 0x260]
push eax
push str.AppData
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
call fcn.0046cbb0
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x46f39e
mov ecx, esi
call fcn.00406540
movups xmm0, xmmword [ebp - 0x248]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x238]
movq qword [esi + 0x10], xmm0
jmp 0x46f3de
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x46f3de
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f3d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f6ba
push edx
push ecx
call fcn.00481e07
add esp, 8
mov edx, dword [esi + 0x10]
test edx, edx
je 0x46f62e
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x46f3f3
mov ecx, dword [esi]
push 0xd
push str._USERPROFILE_
push 0
call fcn.00471130
add esp, 0xc
cmp eax, 0xffffffff
je 0x46f62e
push 0xd
xor eax, eax
mov dword [ebp - 0x238], 0
push str._USERPROFILE_
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00406c50
mov byte [ebp - 4], 1
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x230]
mov edx, 0x80000001
cmovae eax, dword [ebp - 0x260]
push eax
push str.USERPROFILE
push 0
push str.Volatile_Environment
call fcn.0046cbb0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x46f58a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
push dword [ebp - 0x238]
push 0
call fcn.00470f30
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46f4e8
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f4de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f6bf
push edx
push ecx
call fcn.00481e07
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x46f545
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f53b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f6c4
push edx
push ecx
call fcn.00481e07
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x46f69e
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f694
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f6c9
jmp 0x46f694
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46f5ce
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f5c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f6ce
push edx
push ecx
call fcn.00481e07
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x46f62e
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f624
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f6d3
push edx
push ecx
call fcn.00481e07
add esp, 8
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b62b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f662
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406c50
cmp dword [esi + 0x10], 0
jne 0x46f545
mov esi, 0x80004005
jmp 0x46f547
push edx
push ecx
call fcn.00481e07
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482225
mov esp, ebp
pop ebp
ret
call fcn.004c022b
call fcn.004c022b
call fcn.004c022b
call fcn.004c022b
call fcn.004c022b
call fcn.004c022b
int3