Function at 0x46f5f7
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60cb9f
call fcn.0060bcd8
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x46f61a
xor eax, eax
jmp 0x46f894
push ebx
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1720
add esp, 0xc
mov ecx, esi
push edi
push str._ALLUSERSPROFILE_
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x46f672
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._ALLUSERSPROFILE_
call fcn.0046fd10
pop ecx
test eax, eax
je 0x46f890
lea eax, [ebp - 0x21c]
push eax
push str._ALLUSERSPROFILE_
jmp 0x46f832
push edi
push str._APPDATA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f6ae
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._APPDATA_
call fcn.0046fd10
pop ecx
test eax, eax
je 0x46f890
lea eax, [ebp - 0x21c]
push eax
push str._APPDATA_
jmp 0x46f832
push edi
push str._TEMP_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f6ea
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._TEMP_
call fcn.0046fd10
pop ecx
test eax, eax
je 0x46f890
lea eax, [ebp - 0x21c]
push eax
push str._TEMP_
jmp 0x46f832
push edi
push str._SYSTEM_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f726
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46f890
lea eax, [ebp - 0x21c]
push eax
push str._SYSTEM_
jmp 0x46f832
push edi
push str._WINDOWS_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f762
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x46f890
lea eax, [ebp - 0x21c]
push eax
push str._WINDOWS_
jmp 0x46f832
push edi
push str._CUR_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f799
push ecx
lea edx, [ebp - 0x21c]
call fcn.0046fc72
pop ecx
test eax, eax
je 0x46f890
lea eax, [ebp - 0x21c]
push eax
push str._CUR_MODULE_
jmp 0x46f832
push edi
push str._CUR_EXE_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f7e0
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46f890
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
push str._CUR_EXE_MODULE_
jmp 0x46f832
push edi
push str._CUR_DIR_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f83b
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1720
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
push str._CUR_DIR_
mov ecx, esi
call fcn.0043b772
jmp 0x46f8b1
push edi
push str._DUBA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f890
call fcn.00416978
test eax, eax
je 0x46f890
lea ecx, [ebp + 8]
call fcn.00416a04
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0040b397
push dword [ebp + 8]
mov ecx, esi
push str._DUBA_
call fcn.0043b772
lea edx, [ebp + 8]
mov ecx, esi
call fcn.0046f94f
test eax, eax
jne 0x46f8a3
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
push edi
push 0x3f
pop eax
push eax
mov ecx, esi
call fcn.00405fec
mov edi, eax
cmp edi, ebx
je 0x46f935
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005f1d07
pop ecx
jmp 0x46f925
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.005f1ce6
and eax, 0x8000000f
jns 0x46f8e8
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp - 0x10]
push 0x69c730
push eax
call fcn.00471220
movzx eax, word [ebp - 0x10]
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
js 0x46f944
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
cmp edi, ebx
jge 0x46f944
mov ecx, esi
call fcn.00416d70
mov ecx, dword [ebp + 8]
push ebx
mov word [eax + edi*2], cx
mov ecx, esi
call fcn.00406601
inc edi
push edi
mov ecx, esi
call fcn.0040624d
push 0x3f
pop ecx
cmp ax, cx
je 0x46f8d2
mov ecx, esi
call fcn.0046e6e2
xor eax, eax
inc eax
jmp 0x46f892
push 0x80070057
call fcn.00404aa7
int3