Function at 0x5119e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00524330
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
lea esi, [ebp + 0x20]
mov ecx, esi
mov dword [ebp + 0x1c], eax
call fcn.0044c270
mov ecx, dword [0x547570]
mov dword [ebp + 0x84], ecx
lea ecx, [ebp + 0x98]
call fcn.0052e450
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.00430010
mov dword [ebp + 0xf4], ebx
lea eax, [ebp + 0x70]
mov dword [esi], 0x5430b4
lea esi, [ebp + 0x74]
lea edi, [ebp + 0x78]
push eax
mov dword [ebp], 0x5430a8
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 [0x55f5cc], 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 0x511b0b
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.00519980
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 [0x55f5a0]
mov ecx, 0x17
lea esi, [esp + 0x21c]
lea edi, [esp + 0x28]
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
je 0x511b99
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x511b99
mov dword [0x55f5a0], ebx
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [0x55f5a0], 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.005165a0
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 0x511cb5
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
mov dword [esp + 0x24], edx
cmp edx, ebx
mov edx, dword [0x547574]
mov dword [esp + 0x14], ecx
jge 0x511c19
lea ecx, [eax - 0xc]
cmp ecx, edx
jne 0x511c1e
mov ecx, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
jge 0x511c7c
mov edx, dword [esp + 0x24]
mov ecx, dword [esi - 8]
cmp edx, 1
mov dword [esp + 0x14], ecx
jg 0x511c33
cmp ecx, dword [eax - 4]
jle 0x511c4e
mov ecx, edi
call fcn.004124c0
mov edx, dword [esp + 0x14]
mov ecx, edi
push edx
call fcn.00405530
cmp eax, ebx
je 0x511cb5
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 0x511cb5
add eax, 0xfffffff4
cmp eax, edx
je 0x511ca3
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x511c9c
mov edx, dword [edi]
sub edx, 0xc
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x547570]
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 [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x511ce4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x511ce4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x268
ret