Function at 0x41b380
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x485698
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7c]
call fcn.004440b8
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41b3c7
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x68], esi
call fcn.004440b8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41b3f5
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x68], 1
call fcn.004440b8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41b424
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x68], 2
call fcn.004440b8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x41b453
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 1
lea ecx, [esp + 0x38]
push ecx
push ecx
mov byte [esp + 0x74], 3
mov ecx, esp
mov dword [esp + 0x38], esp
push str.hRootKey
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], esi
call fcn.00401ed0
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
push edx
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41b574
mov edi, 0xa0000001
lea esi, [esp + 0x38]
call fcn.00414000
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 4
call fcn.00407570
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b4e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [ecx], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b516
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b53b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b560
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
jmp 0x41bb13
lea ecx, [esp + 0x30]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.DWORD
call fcn.00401ed0
mov byte [esp + 0x70], 5
mov ebx, dword [esp + 0x3c]
push ecx
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add ebx, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
mov dword [esp + 0x28], ebx
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x41b5c5
cmp eax, dword [ebx]
jne 0x41b5c5
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41b601
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x41b5de
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
add ebx, 0x10
lea edx, [eax + eax + 2]
push ebx
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
mov byte [esp + 0x74], 3
call fcn.0043eb10
add esp, 0xc
push 1
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.strRegKey
call fcn.00401ed0
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
push edx
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41b72b
mov edi, 0xa0000001
lea esi, [esp + 0x38]
call fcn.00414000
mov byte [esp + 0x68], 6
push eax
mov ecx, ebp
call fcn.00407570
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b68a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [ecx], 0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b6b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b6de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
add ecx, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb2c
mov eax, dword [esp + 0x1c]
jmp 0x41bb22
push 1
lea ecx, [esp + 0x2c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.WOW64
call fcn.00401ed0
mov edx, dword [esp + 0x7c]
push edx
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41b76f
mov edi, 0xa0000001
lea esi, [esp + 0x38]
call fcn.00414000
mov byte [esp + 0x68], 7
jmp 0x41b65d
lea ecx, [esp + 0x38]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.DWORD
call fcn.00401ed0
mov byte [esp + 0x70], 8
mov esi, dword [esp + 0x30]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov edi, esp
mov dword [esp + 0x38], esi
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41b7be
cmp eax, dword [esi]
jne 0x41b7be
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41b7fc
mov edx, dword [eax]
mov edx, dword [edx]
mov ebx, esi
mov ecx, dword [ebx + 4]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
jne 0x41b7d9
call fcn.004303e0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax + 2]
push ecx
add ebx, 0x10
lea edx, [eax + eax + 2]
push ebx
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00461715
add esp, 0x10
add esi, 0x10
mov dword [edi], esi
mov byte [esp + 0x74], 3
call fcn.0043eb10
add esp, 0xc
push 1
lea ecx, [esp + 0x24]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.iSystemBits
call fcn.00401ed0
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
push edx
mov edi, ebp
call fcn.0042e350
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41b8be
mov edi, 0xa0000001
lea esi, [esp + 0x38]
call fcn.00414000
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 9
call fcn.00407570
mov byte [esp + 0x68], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b881
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x20]
mov dword [ecx], 0
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b8b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x2c]
jmp 0x41b6c5
mov ebx, dword [esp + 0x20]
push ebx
call fcn.00461856
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov eax, dword [0x4a657c]
add esp, 4
test eax, eax
je 0x41b91c
push str.GetNativeSystemInfo
push str.kernel32
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b915
lea ecx, [esp + 0x3c]
push ecx
call eax
mov ax, word [esp + 0x3c]
cmp ax, 9
je 0x41b90b
cmp ax, 6
jne 0x41b915
mov dword [0x4a99d4], 1
xor eax, eax
mov dword [0x4a657c], eax
test esi, esi
je 0x41b936
cmp esi, 1
jne 0x41b9c1
cmp dword [0x4a99d4], 0
jne 0x41b9d3
test eax, eax
je 0x41b97d
push str.GetNativeSystemInfo
push str.kernel32
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b973
lea ecx, [esp + 0x3c]
push ecx
call eax
mov ax, word [esp + 0x3c]
cmp ax, 9
je 0x41b969
cmp ax, 6
jne 0x41b973
mov dword [0x4a99d4], 1
mov dword [0x4a657c], 0
cmp dword [0x4a99d4], 0
je 0x41b9ff
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x41b9e8
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push 0
push edx
push ebx
push ecx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41ba11
cmp esi, 2
jne 0x41b9d3
cmp dword [0x4a99d4], 0
jne 0x41b936
mov dword [esp + 0x24], 1
mov byte [esp + 0x68], 2
lea eax, [ebx - 0x10]
jmp 0x41b897
mov edx, dword [esp + 0x30]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41ba11
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
je 0x41ba7b
cmp edi, 2
je 0x41ba7b
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x38]
mov dword [esp + 0x24], 0
mov dword [eax], edx
call fcn.00414000
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x68], 0xa
mov edx, dword [esp + 0x38]
mov eax, dword [ecx + 0x2c]
push edx
push ebx
push eax
push ebp
call fcn.00403800
mov byte [esp + 0x78], 3
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ba9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41ba9f
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov dword [ecx], 2
mov eax, dword [edx + 0x30]
push ebx
push eax
push ebp
mov dword [esp + 0x30], 1
call fcn.00403800
add esp, 0xc
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x2c]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret