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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642136
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], ecx
xor ebx, ebx
push 0x103
lea edx, [ebp - 0x117]
mov dword [ebp - 4], ebx
push ebx
push edx
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x118], bl
call fcn.005ff630
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x462a03
lea ecx, [ebp - 0x118]
push ecx
sub eax, edx
mov edx, ecx
push str._sMicrosoft_
push edx
mov byte [ebp + eax - 0x118], 0x5c
call fcn.005f1060
add esp, 0xc
lea ecx, [ebp - 0x118]
call fcn.004c3dc0
test eax, eax
je 0x462a45
lea ecx, [ebp - 0x118]
call fcn.004c4240
push str.Config.sys
lea eax, [ebp - 0x118]
push eax
mov ecx, eax
push 0x675f00
push ecx
call fcn.005f1060
movzx edx, word [ebp - 0x14e]
movzx ecx, word [ebp - 0x14a]
push edx
movzx edx, word [ebp - 0x144]
movzx eax, si
push eax
push ecx
movzx ecx, word [ebp - 0x146]
push edx
movzx eax, di
push eax
push ecx
push str._02d_02d_02d_02d_04d_02d
lea ecx, [ebp - 0x138]
call fcn.004d2ae0
add esp, 0x2c
mov byte [ebp - 4], 1
cmp dword [ebp - 0x120], 0x10
mov eax, dword [ebp - 0x134]
jae 0x462ab2
lea eax, [ebp - 0x134]
push eax
call fcn.005f4920
add esp, 4
push ebx
push 0x6745b6
lea ecx, [ebp - 0x138]
mov esi, eax
mov edi, edx
call fcn.00412c10
push edi
push esi
lea esi, [ebp - 0x138]
call fcn.004681d0
mov ecx, dword [ebp - 0x134]
mov edi, 0x10
add esp, 8
cmp dword [ebp - 0x120], edi
jae 0x462af9
lea ecx, [ebp - 0x134]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x30], edi
jae 0x462b04
lea eax, [ebp + 0x1c]
lea edx, [ebp - 0x118]
push edx
push ecx
push eax
push 0x675f88
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x13c]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftOleOffice360
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x154], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x462b81
mov ecx, dword [ebp - 0x134]
cmp dword [ebp - 0x120], edi
jae 0x462b5d
lea ecx, [ebp - 0x134]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x30], edi
jae 0x462b68
lea eax, [ebp + 0x1c]
mov edx, dword [ebp - 0x124]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x120], edi
jb 0x462b98
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.005f0cb0
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x134], bl
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.0040ed70
mov edx, dword [ebp - 0x138]
push edx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], ebx
mov byte [ebp - 4], bl
call fcn.0040ed70
cmp dword [ebp + 0x30], edi
jb 0x462bf2
mov eax, dword [ebp + 0x1c]
push eax
call fcn.005f0cb0
add esp, 4
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x2c], ebx
mov byte [ebp + 0x1c], bl
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 3
call fcn.0040ed70
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.005f0cb0
add esp, 4
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0040ed70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret 0x30