Function at 0x46ef70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee86d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x541100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ebx
call fcn.004bdbe3
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46efbf
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], edi
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46efea
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46f017
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 8], eax
mov byte [ebp - 4], 2
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46f044
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx + 0xc], eax
push 4
mov byte [ebp - 4], 3
lea esi, [ebx + 0x10]
call fcn.004bd4f2
add esp, 4
cmp eax, edi
je 0x46f06c
mov dword [eax], esi
jmp 0x46f06e
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea ecx, [ebx + 0x28]
push ecx
mov byte [ebp - 4], 5
call fcn.0046abd0
push 4
mov byte [ebp - 4], 6
lea esi, [ebx + 0x9c]
call fcn.004bd4f2
add esp, 4
cmp eax, edi
je 0x46f0a2
mov dword [eax], esi
jmp 0x46f0a4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea edx, [ebx + 0xb4]
push edx
mov byte [ebp - 4], 8
call fcn.004730a0
lea eax, [ebx + 0xcc]
push eax
mov byte [ebp - 4], 9
call fcn.004731e0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x218]
push ecx
call fcn.004ccd1a
add esp, 4
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebx + 4]
call fcn.00423404
push ecx
mov esi, esp
mov dword [ebp - 0x228], esp
mov dword [ebp - 0x220], esi
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46f12d
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, 0x50057c
shr eax, 0x10
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x230], eax
cmp eax, edi
jne 0x46f17a
mov ecx, 0x50057c
movzx eax, cx
push eax
mov dword [ebp - 0x21c], eax
call fcn.004c5d7f
cmp eax, edi
je 0x46f194
mov edx, dword [ebp - 0x21c]
push edx
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x46f194
push 0x50057c
call fcn.004ccd1a
add esp, 4
push eax
push 0x50057c
mov ecx, esi
call fcn.00423404
push ecx
mov byte [ebp - 4], 0xc
mov esi, esp
mov dword [ebp - 0x220], esp
mov dword [ebp - 0x22c], esi
call fcn.004bdbe3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46f1c1
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.WinSxs
mov byte [ebp - 4], 0xd
test ecx, 0xffff0000
jne 0x46f206
mov edx, ecx
movzx eax, dx
push eax
mov dword [ebp - 0x21c], eax
call fcn.004c5d7f
cmp eax, edi
je 0x46f220
mov ecx, dword [ebp - 0x21c]
push ecx
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x46f220
push str.WinSxs
call fcn.004ccd1a
add esp, 4
push eax
push str.WinSxs
mov ecx, esi
call fcn.00423404
mov byte [ebp - 4], 0xe
mov eax, dword [ebx + 4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x22c], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.004770a0
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xf
call fcn.00422f41
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46f285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x218]
push edx
call fcn.004ccd1a
add esp, 4
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebx + 8]
call fcn.00423404
push ecx
mov esi, esp
mov dword [ebp - 0x22c], esp
mov dword [ebp - 0x220], esi
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46f2df
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
cmp dword [ebp - 0x230], 0
mov byte [ebp - 4], 0x10
jne 0x46f317
mov ecx, 0x50057c
movzx edi, cx
push edi
call fcn.004c5d7f
test eax, eax
je 0x46f331
push edi
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x46f331
push 0x50057c
call fcn.004ccd1a
add esp, 4
push eax
push 0x50057c
mov ecx, esi
call fcn.00423404
push ecx
mov byte [ebp - 4], 0x11
mov esi, esp
mov dword [ebp - 0x220], esp
mov dword [ebp - 0x228], esi
call fcn.004bdbe3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46f35e
push 0x80004005
call fcn.00420000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.SysWOW64
mov byte [ebp - 4], 0x12
test ecx, 0xffff0000
jne 0x46f397
mov edx, ecx
movzx edi, dx
push edi
call fcn.004c5d7f
test eax, eax
je 0x46f3b1
push edi
push eax
mov ecx, esi
call fcn.00422eb3
jmp 0x46f3b1
push str.SysWOW64
call fcn.004ccd1a
add esp, 4
push eax
push str.SysWOW64
mov ecx, esi
call fcn.00423404
mov byte [ebp - 4], 0x13
mov eax, dword [ebx + 4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x228], esp
mov esi, esp
push eax
call fcn.00423475
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.004770a0
add esp, 0xc
push eax
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0x14
call fcn.00422f41
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f417
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc3b2
mov esp, ebp
pop ebp
ret