Function at 0x46f625
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60cbef
call fcn.0060bd28
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x46f648
xor eax, eax
jmp 0x46f8c2
push ebx
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1780
add esp, 0xc
mov ecx, esi
push edi
push str._ALLUSERSPROFILE_
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x46f6a0
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._ALLUSERSPROFILE_
call fcn.0046fd3e
pop ecx
test eax, eax
je 0x46f8be
lea eax, [ebp - 0x21c]
push eax
push str._ALLUSERSPROFILE_
jmp 0x46f860
push edi
push str._APPDATA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f6dc
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._APPDATA_
call fcn.0046fd3e
pop ecx
test eax, eax
je 0x46f8be
lea eax, [ebp - 0x21c]
push eax
push str._APPDATA_
jmp 0x46f860
push edi
push str._TEMP_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f718
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._TEMP_
call fcn.0046fd3e
pop ecx
test eax, eax
je 0x46f8be
lea eax, [ebp - 0x21c]
push eax
push str._TEMP_
jmp 0x46f860
push edi
push str._SYSTEM_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f754
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46f8be
lea eax, [ebp - 0x21c]
push eax
push str._SYSTEM_
jmp 0x46f860
push edi
push str._WINDOWS_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f790
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x46f8be
lea eax, [ebp - 0x21c]
push eax
push str._WINDOWS_
jmp 0x46f860
push edi
push str._CUR_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f7c7
push ecx
lea edx, [ebp - 0x21c]
call fcn.0046fca0
pop ecx
test eax, eax
je 0x46f8be
lea eax, [ebp - 0x21c]
push eax
push str._CUR_MODULE_
jmp 0x46f860
push edi
push str._CUR_EXE_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f80e
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46f8be
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 0x46f860
push edi
push str._CUR_DIR_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f869
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1780
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 0x46f8df
push edi
push str._DUBA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f8be
call fcn.00416978
test eax, eax
je 0x46f8be
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.0046f97d
test eax, eax
jne 0x46f8d1
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 0x46f963
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005f1cd7
pop ecx
jmp 0x46f953
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.005f1cb6
and eax, 0x8000000f
jns 0x46f916
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp - 0x10]
push 0x69c740
push eax
call fcn.0047124e
movzx eax, word [ebp - 0x10]
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
js 0x46f972
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
cmp edi, ebx
jge 0x46f972
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 0x46f900
mov ecx, esi
call fcn.0046e710
xor eax, eax
inc eax
jmp 0x46f8c0
push 0x80070057
call fcn.00404aa7
int3