Function at 0x524aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x524d60
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x524d35
mov eax, dword [ebp + 8]
add eax, 0x864
push eax
call fcn.005245d8
dec eax
jne 0x524d35
push 0
push 0x23
lea eax, [ebp - 0x232]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 4]
lea edx, [ebp - 0x232]
mov ecx, 0x105
call fcn.00405fc8
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.0041513c
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 4]
mov ecx, 0x524d80
call fcn.0040629c
mov eax, dword [ebp - 4]
call fcn.004facf4
test al, al
jne 0x524b83
xor eax, eax
push ebp
push 0x524b79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040cfc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524b83
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 4]
call fcn.0041513c
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 4]
mov ecx, 0x524ddc
call fcn.0040629c
mov dl, 1
mov eax, dword [0x43c8f4]
call fcn.0043c9b8
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040cf58
test al, al
je 0x524d35
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0040d0ec
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0043d1e4
push 0x524e00
lea eax, [ebp - 8]
push eax
mov ecx, 0x524e10
mov edx, 0x524e2c
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
push 0x524e00
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x524e58
mov edx, 0x524e2c
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0040cae8
mov esi, eax
add esi, dword [ebp + 0xc]
cmp esi, 0x1e
jg 0x524d28
xor eax, eax
push ebp
push 0x524d1e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
mov edx, dword [ebp + 8]
add edx, 0xaf8
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x240]
call fcn.00520574
fstp qword [ebp - 0x18]
wait
lea eax, [ebp - 0x244]
mov edx, dword [ebp + 8]
add edx, 0xbd6
mov ecx, 0x33
call fcn.00405fc8
mov eax, dword [ebp - 0x244]
call fcn.00520574
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00417b90
add eax, dword [ebp + 0xc]
cmp eax, 0x1e
jg 0x524d14
push esi
mov ecx, 0x524e10
mov edx, 0x524e2c
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0040cae8
inc eax
push eax
mov ecx, 0x524e58
mov edx, 0x524e2c
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0043d364
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, esi
call fcn.00417c68
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x248]
call fcn.00520458
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp + 8]
add eax, 0xbd6
call fcn.0040d8ec
mov eax, dword [ebp + 8]
call fcn.00523ea8
mov dword [ebp - 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524d28
mov edx, 7
mov eax, dword [ebp - 4]
call fcn.0040d0ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524d67
lea eax, [ebp - 0x248]
mov edx, 5
call fcn.00405dd8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405dd8
ret