Function at 0x4016cd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.00404ef6
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 0x24
call fcn.00404ef6
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41a2d2
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 4
push ebx
push 0x808
call fcn.00404ef6
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x41a2da
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x200
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x401783
push eax
mov ebx, eax
call fcn.00401606
inc eax
push eax
call fcn.00404ef6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401794
push ebx
call fcn.00404ef0
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4017ab
mov eax, 0x41a2ac
push eax
push 1
mov ebx, 0x24c
call fcn.004053d0
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4017dd
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
nop
nop
jmp 0x401865
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.004053e0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401812
push ebx
call fcn.00404ef0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0
push 0x14
push dword [ebp - 0xc]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
push dword [ebp - 4]
push 0x41a2d0
push dword [ebp - 0xc]
mov ecx, 3
call fcn.00401671
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401861
push ebx
call fcn.00404ef0
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
call fcn.00401bc0
mov dword [ebp - 0x20], eax
push 2
mov eax, dword [ebp - 0x14]
push eax
push 0x81c
call fcn.00404ef6
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x400
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4018d9
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.GDI32.dll_GetFontResourceInfoW]
nop
nop
push eax
mov ebx, dword [ebp - 0x24]
push ebx
mov edi, dword [ebp - 0x28]
push ebx
push edi
push 4
mov eax, 2
call fcn.004052c0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x40191b
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401919
imul eax, dword [edi]
jmp 0x40190e
mov ecx, eax
cmp ecx, 7
jle 0x401925
mov ecx, 7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x1c
push ebx
push edi
push 2
mov eax, 2
call fcn.004052c0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401960
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x40195e
imul eax, dword [edi]
jmp 0x401953
mov ecx, eax
cmp ecx, 0x400
jle 0x40196d
mov ecx, 0x400
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x800
call fcn.00404ef0
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401997
push ebx
call fcn.00404ef0
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
call fcn.00401bc0
mov dword [ebp - 0x20], eax
push 2
mov eax, dword [ebp - 0x14]
push eax
push 0x81c
call fcn.00404ef6
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x400
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x401a0b
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.GDI32.dll_GetFontResourceInfoW]
nop
nop
push eax
mov ebx, dword [ebp - 0x24]
push ebx
mov edi, dword [ebp - 0x28]
push ebx
push edi
push 4
mov eax, 2
call fcn.004052c0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401a4d
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401a4b
imul eax, dword [edi]
jmp 0x401a40
mov ecx, eax
cmp ecx, 7
jle 0x401a57
mov ecx, 7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x1c
push ebx
push edi
push 2
mov eax, 2
call fcn.004052c0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x401a92
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x401a90
imul eax, dword [edi]
jmp 0x401a85
mov ecx, eax
cmp ecx, 0x400
jle 0x401a9f
mov ecx, 0x400
mov esi, ebx
shl ecx, 1
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x800
call fcn.00404ef0
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401ac9
push ebx
call fcn.00404ef0
add esp, 4
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x1c], ebx
push 0xa0000201
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 1
mov ebx, 0x198
call fcn.004055e0
add esp, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004020a0
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401b0f
push ebx
call fcn.00404ef0
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401b23
push ebx
call fcn.00404ef0
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], 0
je 0x401b3e
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
nop
nop
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401b5a
push eax
mov ebx, eax
call fcn.00401606
inc eax
push eax
call fcn.00404ef6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401b5f
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401b70
push ebx
call fcn.00404ef0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401b80
push ebx
call fcn.00404ef0
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00404ef0
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00404ef0
add esp, 4
pop ebx
call fcn.00404ef0
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401bb9
push ebx
call fcn.00404ef0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4