Function at 0x48914e
Capabilities:
Set registry value

Disassembly:
push 0x7c
mov eax, 0x5a9102
call fcn.00462cd6
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x80]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x54], 1
and dword [ebp - 4], 0
call fcn.0048afce
mov byte [ebp - 0x11], 0
test edi, edi
je 0x489370
mov esi, dword [ebx]
lea eax, [ebp - 0x11]
push eax
push edi
push ebx
mov ecx, dword [esi + 0x4c]
call dword [0x5b664c]
call dword [esi + 0x4c]
mov edi, eax
test edi, edi
js 0x489359
cmp byte [ebp - 0x11], 0
jne 0x489359
push 7
xor eax, eax
lea ecx, [ebp - 0x2c]
pop edi
push str.SoftwareMicrosoftOneDrive
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov word [ebp - 0x2c], ax
call fcn.004096b4
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
cmovae eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push ecx
push edx
push 0x2001f
push edx
push edx
push edx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040aa69
test esi, esi
jne 0x48934b
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x34], esi
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
call fcn.0048b10d
cmp dword [eax + 0x14], 8
jb 0x48922d
mov eax, dword [eax]
xor edx, edx
lea ecx, [ebp - 0x30]
push edx
push ecx
push edx
push 0x2001f
push 1
push edx
push edx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.0040aa69
test esi, esi
jne 0x48934b
xor ecx, ecx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push ecx
push ecx
push dword [ebp - 0x30]
call fcn.0048b91b
mov edi, eax
test edi, edi
js 0x489334
push dword [ebp - 0x38]
cmp dword [ebp - 0x1c], esi
jbe 0x489306
lea ecx, [ebp - 0x88]
call fcn.004094f1
mov esi, eax
and dword [ebp - 0x40], 0
lea ecx, [ebp - 0x50]
xor eax, eax
mov byte [ebp - 4], 2
push 0x5c247c
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.004096b4
push esi
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0043c734
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x4892dd
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00409829
lea ecx, [ebp - 0x70]
call fcn.0040aa69
lea ecx, [ebp - 0x50]
call fcn.0040aa69
lea ecx, [ebp - 0x88]
call fcn.0040aa69
jmp 0x48930e
lea ecx, [ebp - 0x2c]
call fcn.004096b4
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
call fcn.0040aa69
jmp 0x489359
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
lea eax, [ebx + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.00462c80
ret 4
push 0x80004005
call fcn.0040a96d
int3