Function at 0x46f424
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60c5af
call fcn.0060b6e8
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x46f447
xor eax, eax
jmp 0x46f6c1
push ebx
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1180
add esp, 0xc
mov ecx, esi
push edi
push str._ALLUSERSPROFILE_
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x46f49f
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._ALLUSERSPROFILE_
call fcn.0046fb3d
pop ecx
test eax, eax
je 0x46f6bd
lea eax, [ebp - 0x21c]
push eax
push str._ALLUSERSPROFILE_
jmp 0x46f65f
push edi
push str._APPDATA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f4db
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._APPDATA_
call fcn.0046fb3d
pop ecx
test eax, eax
je 0x46f6bd
lea eax, [ebp - 0x21c]
push eax
push str._APPDATA_
jmp 0x46f65f
push edi
push str._TEMP_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f517
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._TEMP_
call fcn.0046fb3d
pop ecx
test eax, eax
je 0x46f6bd
lea eax, [ebp - 0x21c]
push eax
push str._TEMP_
jmp 0x46f65f
push edi
push str._SYSTEM_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f553
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46f6bd
lea eax, [ebp - 0x21c]
push eax
push str._SYSTEM_
jmp 0x46f65f
push edi
push str._WINDOWS_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f58f
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x46f6bd
lea eax, [ebp - 0x21c]
push eax
push str._WINDOWS_
jmp 0x46f65f
push edi
push str._CUR_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f5c6
push ecx
lea edx, [ebp - 0x21c]
call fcn.0046fa9f
pop ecx
test eax, eax
je 0x46f6bd
lea eax, [ebp - 0x21c]
push eax
push str._CUR_MODULE_
jmp 0x46f65f
push edi
push str._CUR_EXE_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f60d
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46f6bd
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 0x46f65f
push edi
push str._CUR_DIR_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f668
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1180
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 0x46f6de
push edi
push str._DUBA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x46f6bd
call fcn.00416978
test eax, eax
je 0x46f6bd
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.0046f77c
test eax, eax
jne 0x46f6d0
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 0x46f762
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005f1777
pop ecx
jmp 0x46f752
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.005f1756
and eax, 0x8000000f
jns 0x46f715
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp - 0x10]
push 0x69b6f4
push eax
call fcn.00470fda
movzx eax, word [ebp - 0x10]
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
js 0x46f771
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
cmp edi, ebx
jge 0x46f771
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 0x46f6ff
mov ecx, esi
call fcn.0046e50f
xor eax, eax
inc eax
jmp 0x46f6bf
push 0x80070057
call fcn.00404aa7
int3