Function at 0x4706c9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60db0f
call fcn.0060cc48
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4706ec
xor eax, eax
jmp 0x470966
push ebx
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e26d0
add esp, 0xc
mov ecx, esi
push edi
push str._ALLUSERSPROFILE_
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x470744
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._ALLUSERSPROFILE_
call fcn.00470de2
pop ecx
test eax, eax
je 0x470962
lea eax, [ebp - 0x21c]
push eax
push str._ALLUSERSPROFILE_
jmp 0x470904
push edi
push str._APPDATA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x470780
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._APPDATA_
call fcn.00470de2
pop ecx
test eax, eax
je 0x470962
lea eax, [ebp - 0x21c]
push eax
push str._APPDATA_
jmp 0x470904
push edi
push str._TEMP_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x4707bc
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._TEMP_
call fcn.00470de2
pop ecx
test eax, eax
je 0x470962
lea eax, [ebp - 0x21c]
push eax
push str._TEMP_
jmp 0x470904
push edi
push str._SYSTEM_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x4707f8
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x470962
lea eax, [ebp - 0x21c]
push eax
push str._SYSTEM_
jmp 0x470904
push edi
push str._WINDOWS_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x470834
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x470962
lea eax, [ebp - 0x21c]
push eax
push str._WINDOWS_
jmp 0x470904
push edi
push str._CUR_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x47086b
push ecx
lea edx, [ebp - 0x21c]
call fcn.00470d44
pop ecx
test eax, eax
je 0x470962
lea eax, [ebp - 0x21c]
push eax
push str._CUR_MODULE_
jmp 0x470904
push edi
push str._CUR_EXE_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x4708b2
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x470962
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 0x470904
push edi
push str._CUR_DIR_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x47090d
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e26d0
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.0043c922
jmp 0x470983
push edi
push str._DUBA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x470962
call fcn.00417b25
test eax, eax
je 0x470962
lea ecx, [ebp + 8]
call fcn.00417bb1
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0040b397
push dword [ebp + 8]
mov ecx, esi
push str._DUBA_
call fcn.0043c922
lea edx, [ebp + 8]
mov ecx, esi
call fcn.00470a21
test eax, eax
jne 0x470975
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 0x470a07
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005f2c37
pop ecx
jmp 0x4709f7
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.005f2c16
and eax, 0x8000000f
jns 0x4709ba
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp - 0x10]
push 0x69dad0
push eax
call fcn.004722fe
movzx eax, word [ebp - 0x10]
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
js 0x470a16
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
cmp edi, ebx
jge 0x470a16
mov ecx, esi
call fcn.00417f1d
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 0x4709a4
mov ecx, esi
call fcn.0046f74d
xor eax, eax
inc eax
jmp 0x470964
push 0x80070057
call fcn.00404aa7
int3