Function at 0x40d230
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4f7458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
push str.RegGetValueW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40d283
jmp 0x40d4b1
push str.SYSTEMCurrentControlSetControlSession_Manager
lea ecx, [ebp - 0x20]
call fcn.00411290
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x24]
push ecx
push 0xf003f
push 8
mov edx, dword [ebp - 0x5c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d2e3
push str.CopyUpdateValue_RegOpenKeyEx_fail.
mov eax, dword [ebp - 0xa8]
push eax
call fcn.004028d0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402470
jmp 0x40d4b1
push str.PendingFileRenameOperations
lea ecx, [ebp - 0x10]
call fcn.00411290
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d356
push str.CopyUpdateValue_RegQueryValueEx_fail.
mov eax, dword [ebp - 0xa8]
push eax
call fcn.004028d0
add esp, 8
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402470
jmp 0x40d4b1
lea ecx, [ebp - 0x40]
call fcn.0044a42d
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004473ba
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x78], ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0x20
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [ebp - 0x44]
push str.PendingFileRenameOperations2
lea ecx, [ebp - 0x2c]
call fcn.00411290
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 7
push 0
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40d458
mov edx, dword [ebp - 0x1c]
push edx
push str.CopyUpdateValue_RegSetValueEx_fail._status___d
mov eax, dword [ebp - 0xa8]
push eax
call fcn.004028d0
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004473c5
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0044a796
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402470
jmp 0x40d4b1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.004473c5
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0044a796
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret