Function at 0x4707cd
Capabilities:
Get common file path

Disassembly:
mov eax, 0x60d26f
call fcn.0060c3a8
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4707f0
xor eax, eax
jmp 0x470a6a
push ebx
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1e60
add esp, 0xc
mov ecx, esi
push edi
push str._ALLUSERSPROFILE_
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x470848
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._ALLUSERSPROFILE_
call fcn.00470ee6
pop ecx
test eax, eax
je 0x470a66
lea eax, [ebp - 0x21c]
push eax
push str._ALLUSERSPROFILE_
jmp 0x470a08
push edi
push str._APPDATA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x470884
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._APPDATA_
call fcn.00470ee6
pop ecx
test eax, eax
je 0x470a66
lea eax, [ebp - 0x21c]
push eax
push str._APPDATA_
jmp 0x470a08
push edi
push str._TEMP_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x4708c0
push ecx
lea edx, [ebp - 0x21c]
mov ecx, str._TEMP_
call fcn.00470ee6
pop ecx
test eax, eax
je 0x470a66
lea eax, [ebp - 0x21c]
push eax
push str._TEMP_
jmp 0x470a08
push edi
push str._SYSTEM_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x4708fc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x470a66
lea eax, [ebp - 0x21c]
push eax
push str._SYSTEM_
jmp 0x470a08
push edi
push str._WINDOWS_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x470938
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x470a66
lea eax, [ebp - 0x21c]
push eax
push str._WINDOWS_
jmp 0x470a08
push edi
push str._CUR_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x47096f
push ecx
lea edx, [ebp - 0x21c]
call fcn.00470e48
pop ecx
test eax, eax
je 0x470a66
lea eax, [ebp - 0x21c]
push eax
push str._CUR_MODULE_
jmp 0x470a08
push edi
push str._CUR_EXE_MODULE_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x4709b6
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x470a66
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 0x470a08
push edi
push str._CUR_DIR_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x470a11
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.005e1e60
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.0043c8c2
jmp 0x470a87
push edi
push str._DUBA_
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x470a66
call fcn.00417ac6
test eax, eax
je 0x470a66
lea ecx, [ebp + 8]
call fcn.00417b52
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.0040b397
push dword [ebp + 8]
mov ecx, esi
push str._DUBA_
call fcn.0043c8c2
lea edx, [ebp + 8]
mov ecx, esi
call fcn.00470b25
test eax, eax
jne 0x470a79
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 0x470b0b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005f2387
pop ecx
jmp 0x470afb
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.005f2366
and eax, 0x8000000f
jns 0x470abe
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp - 0x10]
push 0x69caa8
push eax
call fcn.004723f6
movzx eax, word [ebp - 0x10]
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
js 0x470b1a
mov eax, dword [esi]
mov ebx, dword [eax - 0xc]
cmp edi, ebx
jge 0x470b1a
mov ecx, esi
call fcn.00417ebe
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 0x470aa8
mov ecx, esi
call fcn.0046f851
xor eax, eax
inc eax
jmp 0x470a68
push 0x80070057
call fcn.00404aa7
int3