Function at 0x46ee40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511031
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 - 0x230]
mov edx, 0x80000001
cmovae eax, dword [ebp - 0x260]
push eax
push str.TEMP
push 0
push str.Environment
call fcn.0046cbb0
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x46eefe
mov ecx, esi
call fcn.00406540
movups xmm0, xmmword [ebp - 0x230]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
jmp 0x46ef3e
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46ef3e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ef34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f2bc
push edx
push ecx
call fcn.00481e07
add esp, 8
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x46efee
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x260]
push eax
push 0x530ba4
push edx
push str.Environment
mov edx, 0x80000001
call fcn.0046cbb0
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x46efa3
mov ecx, esi
call fcn.00406540
movups xmm0, xmmword [ebp - 0x230]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
jmp 0x46efe3
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46efe3
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46efd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f2c1
push edx
push ecx
call fcn.00481e07
add esp, 8
mov edx, dword [esi + 0x10]
test edx, edx
je 0x46f233
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x46eff8
mov ecx, dword [esi]
push 0xd
push str._USERPROFILE_
push 0
call fcn.00471130
add esp, 0xc
cmp eax, 0xffffffff
je 0x46f233
push 0xd
xor eax, eax
mov dword [ebp - 0x220], 0
push str._USERPROFILE_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00406c50
mov byte [ebp - 4], 1
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.USERPROFILE
push 0
push str.Volatile_Environment
call fcn.0046cbb0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x46f18f
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push ecx
cmovae eax, dword [ebp - 0x248]
mov ecx, esi
push eax
push dword [ebp - 0x220]
push 0
call fcn.00470f30
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x46f0ed
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f0e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f2c6
push edx
push ecx
call fcn.00481e07
add esp, 8
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x46f14a
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f140
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f2cb
push edx
push ecx
call fcn.00481e07
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x46f2a0
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f296
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f2d0
jmp 0x46f296
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x46f1d3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f1c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f2d5
push edx
push ecx
call fcn.00481e07
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x46f233
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f229
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46f2da
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 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f264
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 0x46f14a
mov esi, 0x80004005
jmp 0x46f14c
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
call fcn.004c022b
int3