Function at 0x411870
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x49068c
mov eax, dword fs:[0]
push eax
mov eax, 0x206c
call fcn.00488970
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x2068], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x2080]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411b2c
push 0x1ffe
lea edx, [esp + 0x82]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x88], cx
call fcn.0047c520
mov ebp, 7
xor eax, eax
add esp, 0xc
mov dword [esp + 0x1c], 0x2000
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], ax
mov dword [esp + 0x2088], ebx
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411931
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x48]
call fcn.0040c300
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
mov byte [esp + 0x2098], 1
mov edx, dword [esp + 0x28]
push str.PendingFileRenameOperations
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411b56
mov eax, dword [esp + 0x1c]
shr eax, 1
xor ecx, ecx
push eax
lea eax, [esp + 0x80]
lea esi, [esp + 0x64]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], cx
call fcn.0040c300
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x2090], 2
call fcn.0040bb80
mov esi, 8
mov byte [esp + 0x2088], 1
cmp dword [esp + 0x78], esi
jb 0x4119db
mov edx, dword [esp + 0x64]
push edx
call fcn.00479461
add esp, 4
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x411af7
push 0x4bf31c
xor edi, edi
lea ecx, [esp + 0x2c]
call fcn.0040d620
test eax, eax
je 0x411af7
mov eax, dword [esp + 0x3c]
lea ecx, [eax - 1]
xor ebp, ebp
test ecx, ecx
jbe 0x411aee
cmp ebp, eax
jbe 0x411a19
call fcn.0047a626
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x411a27
lea eax, [esp + 0x2c]
cmp word [eax + ebp*2], 0
jne 0x411ade
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x3c]
jbe 0x411a40
call fcn.0047a626
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x411a4e
lea eax, [esp + 0x2c]
cmp word [eax + ebp*2 + 2], 0
jne 0x411ade
mov edi, ebx
lea edx, [esp + 0x28]
mov ecx, ebp
sub ecx, edi
push edx
mov edx, edi
lea esi, [esp + 0x64]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ecx
call fcn.0040b1c0
mov byte [esp + 0x2088], 3
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x411a8f
lea eax, [esp + 0x48]
mov ebx, dword [esp + 0x58]
push eax
xor eax, eax
lea edx, [esp + 0x64]
call fcn.0040bc30
cmp eax, 0xffffffff
je 0x411abc
mov eax, dword [esp + 0x24]
inc eax
mov ebx, edi
lea esi, [esp + 0x28]
call fcn.0040b130
lea ebp, [edi - 1]
dec edi
mov dword [esp + 0x14], edi
mov eax, 1
add dword [esp + 0x14], eax
lea esi, [esp + 0x60]
mov byte [esp + 0x2088], al
call fcn.00469b30
mov ebx, dword [esp + 0x14]
mov esi, 8
mov eax, dword [esp + 0x3c]
inc ebp
lea ecx, [eax - 1]
cmp ebp, ecx
jb 0x411a10
mov ebp, 7
xor ebx, ebx
jmp 0x411b5b
cmp dword [esp + 0x5c], esi
jb 0x411b0a
mov edx, dword [esp + 0x48]
push edx
call fcn.00479461
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
cmp dword [esp + 0x40], esi
jb 0x411b2c
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00479461
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2068]
xor ecx, esp
call fcn.0047946c
add esp, 0x2078
ret
mov esi, 8
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x411b69
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x3c]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
push ebx
push str.PendingFileRenameOperations
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x5c], esi
jb 0x411ba6
mov edx, dword [esp + 0x48]
push edx
call fcn.00479461
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
cmp dword [esp + 0x40], esi
jb 0x411bc8
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00479461
add esp, 4
mov eax, 1
jmp 0x411b2e