Function at 0x4add10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0040bbf0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
lea esi, [ebp + 0x20]
mov ecx, esi
mov dword [ebp + 0x1c], eax
call fcn.004410b0
mov ecx, dword [0x4d9540]
mov dword [ebp + 0x84], ecx
lea ecx, [ebp + 0x98]
call fcn.004c2b20
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0xb4]
xor ebx, ebx
mov byte [ecx], dl
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00428360
mov dword [ebp + 0xf4], ebx
lea eax, [ebp + 0x70]
mov dword [esi], 0x4d4cac
lea esi, [ebp + 0x74]
lea edi, [ebp + 0x78]
push eax
mov dword [ebp], 0x4d4ca0
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x10c], ebx
mov dword [ebp + 0xd4], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x40], 0xffffffff
mov dword [ebp + 0xc8], ebx
mov dword [ebp + 0x114], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0xcc], ebx
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x80], ebx
mov dword [ebp + 0xe4], ebx
push 0x11
mov dword [0x4ee1ec], ebx
push ebx
mov dword [ebp + 0xe8], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x94], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x64], ebx
mov dword [esi], ebx
mov dword [edi], ebx
mov dword [eax], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x12
push ebx
call esi
push edi
push 1
push ebx
call esi
lea ecx, [esp + 0x1c]
push 0x23
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSettings]
mov al, byte [esp + 0x1c]
mov dword [ebp + 0xf8], 0x60
test al, 1
je 0x4ade3b
mov dword [ebp + 0xf8], 0xe0
lea edx, [ebp + 0xec]
mov dword [ebp + 0x104], ebx
push edx
push ebx
mov dword [ebp + 0xc4], ebx
mov dword [ebp + 0xe0], 1
call fcn.004b50e0
mov ecx, 0x17
xor eax, eax
lea edi, [esp + 0x30]
add esp, 8
rep stosd dword es:[edi], eax
mov ecx, 0x7c
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x84]
push ebx
push eax
push 0x1f4
push 0x29
mov dword [esp + 0x94], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [0x4ee1c0]
mov ecx, 0x17
lea esi, [esp + 0x21c]
lea edi, [esp + 0x28]
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
je 0x4adec9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4adec9
mov dword [0x4ee1c0], ebx
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x4ee1c0], eax
lea eax, [ebp + 0xfc]
push eax
mov dword [eax], ebx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea esi, [ebp + 0x7c]
push esi
push ebx
push ebx
mov dword [esi], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esi]
push 0x8000
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.004b25d0
mov ecx, eax
mov eax, dword [ebp + 0x84]
lea edi, [ebp + 0x84]
mov dword [esp + 0x20], ecx
mov esi, dword [ecx]
cmp eax, esi
je 0x4adfe5
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
mov dword [esp + 0x24], edx
cmp edx, ebx
mov edx, dword [0x4d9544]
mov dword [esp + 0x14], ecx
jge 0x4adf49
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x4adf4e
mov ecx, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
jge 0x4adfac
mov edx, dword [esp + 0x24]
mov ecx, dword [esi - 8]
cmp edx, 1
mov dword [esp + 0x14], ecx
jg 0x4adf63
cmp ecx, dword [eax - 4]
jle 0x4adf7e
mov ecx, edi
call fcn.0040e950
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.004012f0
cmp eax, ebx
je 0x4adfe5
mov ecx, dword [esp + 0x14]
mov edi, dword [edi]
lea eax, [ecx + ecx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x84]
mov dword [ecx - 8], edx
mov ecx, dword [ebp + 0x84]
mov word [eax + ecx], bx
jmp 0x4adfe5
add eax, 0xfffffff4
cmp eax, edx
je 0x4adfd3
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4adfcc
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4d9540]
mov dword [edi], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4ae014
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ae014
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x268
ret