Function at 0x4711da
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.0040ac91
test eax, eax
je 0x471237
mov eax, dword [0x4bc51c]
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 0x471286
mov eax, dword [0x4bc51c]
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.0040ac91
test eax, eax
mov esi, str._drive_
je 0x4712bb
lea eax, [ebp - 4]
push ebx
push eax
call fcn.0045f34d
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.0040ac91
test eax, eax
je 0x4712e6
lea eax, [ebp - 4]
push eax
call fcn.0045f431
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.0040ac91
test eax, eax
je 0x471331
lea ecx, [ebp - 0xc]
call fcn.004893c1
push ebx
push ebx
lea ecx, [ebp - 0xc]
call fcn.00489c06
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
call fcn.00489a02
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.004893ad
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040ac91
test eax, eax
je 0x47137d
lea ecx, [ebp - 0xc]
call fcn.004893c1
push ebx
push 0x1a
lea ecx, [ebp - 0xc]
call fcn.00489c06
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
call fcn.00489a02
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.004893ad
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040ac91
test eax, eax
je 0x4713c9
lea ecx, [ebp - 0xc]
call fcn.004893c1
push ebx
push 5
lea ecx, [ebp - 0xc]
call fcn.00489c06
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
call fcn.00489a02
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.004893ad
cmp dword [ebp + 0x10], ebx
je 0x471414
mov esi, 0x4b753c
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.00403d34
test eax, eax
jl 0x471414
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046dc79
mov ecx, eax
call fcn.00489a02
lea ecx, [ebp - 0xc]
call fcn.004893ad
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, 0x4b7538
mov eax, dword [0x4af550]
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 0x47148c
push edi
call fcn.0043f0b0
cmp eax, ebx
pop ecx
je 0x47148c
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0046dc79
mov ecx, eax
call fcn.00489a02
lea ecx, [ebp - 0x14]
call fcn.004893ad
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 0x47141b
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