Function at 0x5110e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0040f8f0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
lea esi, [ebp + 0x20]
mov ecx, esi
mov dword [ebp + 0x1c], eax
call fcn.0044c0f0
mov ecx, dword [0x546560]
mov dword [ebp + 0x84], ecx
lea ecx, [ebp + 0x98]
call fcn.0052d960
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.0042ff60
mov dword [ebp + 0xf4], ebx
lea eax, [ebp + 0x70]
mov dword [esi], 0x5420b4
lea esi, [ebp + 0x74]
lea edi, [ebp + 0x78]
push eax
mov dword [ebp], 0x5420a8
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 [0x55e514], 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 0x51120b
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.00518d20
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 [0x55e4e8]
mov ecx, 0x17
lea esi, [esp + 0x21c]
lea edi, [esp + 0x28]
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
je 0x511299
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x511299
mov dword [0x55e4e8], ebx
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x55e4e8], 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.00515c90
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 0x5113b5
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
mov dword [esp + 0x24], edx
cmp edx, ebx
mov edx, dword [0x546564]
mov dword [esp + 0x14], ecx
jge 0x511319
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x51131e
mov ecx, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
jge 0x51137c
mov edx, dword [esp + 0x24]
mov ecx, dword [esi - 8]
cmp edx, 1
mov dword [esp + 0x14], ecx
jg 0x511333
cmp ecx, dword [eax - 4]
jle 0x51134e
mov ecx, edi
call fcn.00412670
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.00405530
cmp eax, ebx
je 0x5113b5
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 0x5113b5
add eax, 0xfffffff4
cmp eax, edx
je 0x5113a3
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51139c
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x5113e4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5113e4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x268
ret