Function at 0x41d020
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1008
call fcn.004580a0
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x1004], eax
push esi
push edi
push 0x800
lea eax, [esp + 0x810]
push 0
push eax
call fcn.00457170
add esp, 0xc
push 1
push 0x10
lea ecx, [esp + 0x814]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x800
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00457170
add esp, 0xc
push 0x88
lea ecx, [esp + 0xc]
call fcn.0041caa0
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea ecx, [esp + 0x810]
push ecx
lea edx, [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x41d0ce
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41d0ce
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.0043ec00
add esp, 4
push 0x89
lea ecx, [esp + 0xc]
call fcn.0041caa0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x810]
push edx
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x41d124
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41d124
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.0043ec00
add esp, 4
push 0xb3
lea ecx, [esp + 0xc]
call fcn.0041caa0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x810]
push edx
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x41d17a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41d17a
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.0043ec00
add esp, 4
push 0xb5
lea ecx, [esp + 0xc]
call fcn.0041caa0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x810]
push edx
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x41d1d0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41d1d0
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.0043ec00
add esp, 4
push 0xb6
lea ecx, [esp + 0xc]
call fcn.0041caa0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x810]
push edx
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x41d226
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41d226
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.0043ec00
add esp, 4
push 0xb7
lea ecx, [esp + 0xc]
call fcn.0041caa0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x810]
push edx
lea eax, [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x41d27c
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41d27c
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
lea eax, [esp + 0xc]
push eax
call fcn.0043ec00
add esp, 4
push 0x477f6c
lea ecx, [esp + 0x810]
push ecx
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0xc]
push eax
call fcn.0043ec00
mov ecx, dword [esp + 0x1010]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0045715c
add esp, 0x1008
ret