Function at 0x76e9d0
Capabilities:
Copy file
Get common file path
Set registry value

Disassembly:
sub esp, 0x3a4
mov al, byte [0x870c08]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x11c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x11c]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov edi, 0x862e34
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x3bc]
and ecx, 3
lea edx, [esp + 0x120]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x870c08]
mov ecx, ebp
and ecx, 3
mov byte [esp + 0x1c], al
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov edi, 0x862e34
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.007a5cf5
add esp, 8
test eax, eax
je 0x76eb1f
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.kernel32.dll_CopyFileA]
test eax, eax
je 0x76ebeb
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.gdi32.dll_AddFontResourceA]
test eax, eax
je 0x76ebeb
lea ecx, [esp + 0x220]
mov dword [esp + 0x220], 0x94
push ecx
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x76ebeb
mov eax, dword [esp + 0x230]
lea edx, [esp + 0x2b4]
cmp eax, 2
mov edi, 0x862e00
je 0x76eb70
mov edi, 0x862dd0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x2b4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push reloc.oleaut32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x76ebeb
mov edx, dword [esp + 0x3bc]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
push edx
push reloc.oleaut32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x76ebeb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a4
ret