Function at 0x45321e
Capabilities:
Set registry value

Disassembly:
push 0x7c
mov eax, 0x6196a8
call fcn.00429e48
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.00455052
mov byte [ebp - 0x11], 0
test edi, edi
je 0x453454
mov eax, dword [ebx]
mov esi, dword [eax + 0x54]
lea eax, [ebp - 0x11]
push eax
push edi
push ebx
mov ecx, esi
call dword [0x63a7a0]
call esi
mov edi, eax
test edi, edi
js 0x453440
cmp byte [ebp - 0x11], 0
jne 0x453440
and dword [ebp - 0x38], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x34], 0
push str.SoftwareMicrosoftOneDrive
call fcn.00411838
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.0041395f
test esi, esi
jne 0x453432
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.00455112
cmp dword [eax + 0x14], 8
jb 0x4532ef
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.0041395f
test esi, esi
jne 0x453432
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.004558bb
mov edi, eax
test edi, edi
js 0x4533e8
push dword [ebp - 0x18]
cmp dword [ebp - 0x20], esi
jbe 0x4533ba
lea ecx, [ebp - 0x88]
call fcn.00411838
mov esi, eax
push 0x641564
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00411838
push esi
push eax
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00451728
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.00411b20
lea ecx, [ebp - 0x58]
call fcn.0041395f
lea ecx, [ebp - 0x70]
call fcn.0041395f
lea ecx, [ebp - 0x88]
call fcn.0041395f
jmp 0x4533c2
lea ecx, [ebp - 0x30]
call fcn.00411a05
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 0x453440
mov ecx, dword [ebp - 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], ecx
cmp eax, 0x1000
jb 0x453427
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00413aba
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
push eax
push ecx
call fcn.00429b68
pop ecx
pop ecx
jmp 0x453440
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.00429df7
ret 4
push 0x80004005
call fcn.0041393f
int3