Function at 0x4716ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040ac50
test eax, eax
je 0x471717
mov eax, dword [0x4bd5dc]
mov ecx, 0x81
mov dword [ebp - 0x21c], eax
xor eax, eax
lea edi, [ebp - 0x218]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
lea ecx, [ebp + 0xc]
push eax
push str._sysdir_
call fcn.004040f7
mov esi, str._windir_
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.00403d34
test eax, eax
jl 0x471766
mov eax, dword [0x4bd5dc]
mov ecx, 0x81
mov dword [ebp - 0x21c], eax
xor eax, eax
lea edi, [ebp - 0x218]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x21c]
lea ecx, [ebp + 0xc]
push eax
push esi
call fcn.004040f7
push ebx
push 1
pop edi
lea ecx, [ebp + 0xc]
push edi
call fcn.0040ac50
test eax, eax
mov esi, str._drive_
je 0x47179b
lea eax, [ebp - 4]
push ebx
push eax
call fcn.0045f73f
pop ecx
pop ecx
push dword [eax]
lea ecx, [ebp + 0xc]
push esi
call fcn.004040f7
lea ecx, [ebp - 4]
call fcn.004038fb
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040ac50
test eax, eax
je 0x4717c6
lea eax, [ebp - 4]
push eax
call fcn.0045f823
pop ecx
push dword [eax]
lea ecx, [ebp + 0xc]
push esi
call fcn.004040f7
lea ecx, [ebp - 4]
call fcn.004038fb
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040ac50
test eax, eax
je 0x471811
lea ecx, [ebp - 0xc]
call fcn.0048997e
push ebx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0048a1c3
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
call fcn.00489fbf
push dword [eax]
lea ecx, [ebp + 0xc]
push str._desktop_
call fcn.004040f7
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.0048996a
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040ac50
test eax, eax
je 0x47185d
lea ecx, [ebp - 0xc]
call fcn.0048997e
push ebx
push 0x1a
lea ecx, [ebp - 0xc]
call fcn.0048a1c3
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
call fcn.00489fbf
push dword [eax]
lea ecx, [ebp + 0xc]
push str._appdata_
call fcn.004040f7
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.0048996a
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040ac50
test eax, eax
je 0x4718a9
lea ecx, [ebp - 0xc]
call fcn.0048997e
push ebx
push 5
lea ecx, [ebp - 0xc]
call fcn.0048a1c3
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
call fcn.00489fbf
push dword [eax]
lea ecx, [ebp + 0xc]
push str._personal_
call fcn.004040f7
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.0048996a
cmp dword [ebp + 0x10], ebx
je 0x4718f4
mov esi, 0x4b85cc
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.00403d34
test eax, eax
jl 0x4718f4
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046e156
mov ecx, eax
call fcn.00489fbf
lea ecx, [ebp - 0xc]
call fcn.0048996a
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
call fcn.004040f7
lea ecx, [ebp + 0x10]
call fcn.004038fb
xor edi, edi
mov esi, 0x4b85c8
mov eax, dword [0x4b0550]
push esi
mov dword [ebp + 0x10], eax
lea eax, [edi + 1]
mov dword [ebp - 8], eax
push eax
push esi
lea eax, [ebp + 0x10]
push str._scurdir_d_s
push eax
call fcn.00403d66
add esp, 0x14
lea ecx, [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
call fcn.00403d34
test eax, eax
jl 0x47196c
push edi
call fcn.0043f160
cmp eax, ebx
pop ecx
je 0x47196c
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0046e156
mov ecx, eax
call fcn.00489fbf
lea ecx, [ebp - 0x14]
call fcn.0048996a
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004040f7
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp + 0x10]
call fcn.004038fb
mov edi, dword [ebp - 8]
cmp edi, 4
jl 0x4718fb
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.004038b5
lea ecx, [ebp + 0xc]
call fcn.004038fb
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret