Function at 0x441c77
Capabilities:
Set registry value

Disassembly:
push 0x7c
mov eax, 0x5f66b0
call fcn.004e1c06
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x70]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x3c], 1
and dword [ebp - 4], 0
call fcn.00443ad2
mov byte [ebp - 0x11], 0
test edi, edi
je 0x441ead
mov eax, dword [ebx]
mov esi, dword [eax + 0x54]
lea eax, [ebp - 0x11]
push eax
push edi
push ebx
mov ecx, esi
call dword [0x6147a0]
call esi
mov edi, eax
test edi, edi
js 0x441e99
cmp byte [ebp - 0x11], 0
jne 0x441e99
and dword [ebp - 0x38], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x34], 0
push str.SoftwareMicrosoftOneDrive
call fcn.0040ab57
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x38]
mov edi, 0x2001f
cmovae eax, dword [ebp - 0x58]
xor edx, edx
push edx
push ecx
push edx
push edi
push edx
push edx
push edx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00405a95
test esi, esi
jne 0x441e8b
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x38], esi
lea eax, [ebp - 0x58]
push eax
mov ecx, ebx
call fcn.00443b92
cmp dword [eax + 0x14], 8
jb 0x441d48
mov eax, dword [eax]
xor edx, edx
lea ecx, [ebp - 0x34]
push edx
push ecx
push edx
push edi
push 1
push edx
push edx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00405a95
test esi, esi
jne 0x441e8b
xor ecx, ecx
mov dword [ebp - 0x1c], 7
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
push ecx
push ecx
push dword [ebp - 0x34]
call fcn.0044433b
mov edi, eax
test edi, edi
js 0x441e41
push dword [ebp - 0x18]
cmp dword [ebp - 0x20], esi
jbe 0x441e13
lea ecx, [ebp - 0x88]
call fcn.0040ab57
mov esi, eax
push 0x61d294
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.0040ab57
push esi
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00440169
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 4
call fcn.0040a6e1
lea ecx, [ebp - 0x58]
call fcn.00405a95
lea ecx, [ebp - 0x70]
call fcn.00405a95
lea ecx, [ebp - 0x88]
call fcn.00405a95
jmp 0x441e1b
lea ecx, [ebp - 0x30]
call fcn.0040aaa9
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], 8
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 1
push 0
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x441e99
mov ecx, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], ecx
cmp eax, 0x1000
jb 0x441e80
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00405a41
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
push eax
push ecx
call fcn.00419529
pop ecx
pop ecx
jmp 0x441e99
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
lea eax, [ebx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.004e1bb5
ret 4
push 0x80004005
call fcn.004059b0
int3