Function at 0x45caf0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bb01
mov eax, dword fs:[0]
push eax
sub esp, 0x894
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x89c], eax
cmp edi, ebx
je 0x45cbf4
cmp ecx, ebx
je 0x45cbf4
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x85c], 7
mov dword [ebp - 0x860], ebx
mov word [ebp - 0x870], dx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x45cb60
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x870]
call fcn.00437a20
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x840], 7
mov dword [ebp - 0x844], ebx
mov word [ebp - 0x854], ax
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x894]
push ecx
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 1
mov dword [ebp - 0x894], 0x5c
call fcn.0043c720
mov esi, eax
cmp esi, 0xffffffff
jne 0x45cc15
xor edx, edx
cmp dword [ebp - 0x85c], 8
mov dword [ebp - 0x840], 7
mov dword [ebp - 0x844], ebx
mov word [ebp - 0x854], dx
jb 0x45cbf4
mov eax, dword [ebp - 0x870]
push eax
call int.0042bfd0
add esp, 4
mov eax, 0x3f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x870]
call fcn.0043cf20
push eax
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 2
call fcn.0042eb10
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x45cc50
mov eax, dword [ebp - 0x2c]
push eax
call int.0042bfd0
add esp, 4
push esi
push ebx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x870]
call fcn.0043cf20
push eax
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 3
call fcn.0042eb10
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jb 0x45cc8b
mov edx, dword [ebp - 0x2c]
push edx
call int.0042bfd0
add esp, 4
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x890], ebx
cmp dword [ebp - 0x85c], esi
jae 0x45cca5
lea eax, [ebp - 0x870]
lea ecx, [ebp - 0x890]
push ecx
push 0x2001f
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x45cd3e
push 0x7fe
lea eax, [ebp - 0x836]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x838], dx
call fcn.005336c0
mov eax, dword [ebp - 0x854]
mov edi, 8
add esp, 0xc
mov dword [ebp - 0x898], ebx
mov dword [ebp - 0x8a0], 0x800
cmp dword [ebp - 0x840], edi
jae 0x45cd07
lea eax, [ebp - 0x854]
lea ecx, [ebp - 0x8a0]
push ecx
lea edx, [ebp - 0x838]
push edx
mov edx, dword [ebp - 0x890]
lea ecx, [ebp - 0x898]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x45cd5b
mov eax, dword [ebp - 0x890]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x854]
call fcn.004b2d30
lea ecx, [ebp - 0x870]
call fcn.004b2d30
mov eax, esi
jmp 0x45cbf9
xor ecx, ecx
mov dword [ebp - 0x878], 7
mov dword [ebp - 0x87c], ebx
mov word [ebp - 0x88c], cx
mov eax, dword [ebp - 0x898]
mov byte [ebp - 4], 4
cmp eax, 4
jne 0x45cdcc
xor eax, eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x838]
push eax
push 0x5981f4
push 0x13
lea ecx, [ebp - 0x38]
xor edx, edx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x38], dx
call fcn.0053459e
add esp, 0x14
lea edx, [ebp - 0x38]
push edx
jmp 0x45cddd
cmp eax, 1
je 0x45cdd6
cmp eax, 2
jne 0x45cde8
lea eax, [ebp - 0x838]
push eax
lea ecx, [ebp - 0x88c]
call fcn.00437b60
mov esi, dword [ebp - 0x89c]
lea ecx, [ebp - 0x88c]
push esi
push ecx
call fcn.0045c7b0
add esp, 8
test al, al
je 0x45cebe
mov eax, dword [esi]
cmp eax, ebx
jne 0x45ce33
mov eax, dword [ebp - 0x854]
cmp dword [ebp - 0x840], edi
jae 0x45ce20
lea eax, [ebp - 0x854]
mov edx, dword [ebp - 0x890]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x45cebe
cmp eax, 1
jne 0x45cebe
mov edx, dword [ebp - 0x898]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x894], ebx
cmp edx, 4
jne 0x45ce7d
cmp dword [esi + 0x3c], edi
lea eax, [esi + 0x28]
jb 0x45ce5b
mov eax, dword [eax]
push eax
call fcn.005374b1
mov edx, dword [ebp - 0x898]
mov dword [ebp - 0x894], eax
add esp, 4
lea eax, [ebp - 0x894]
mov ecx, 4
jmp 0x45ce98
cmp edx, 1
je 0x45ce87
cmp edx, 2
jne 0x45ce98
cmp dword [esi + 0x3c], edi
lea eax, [esi + 0x28]
jb 0x45ce91
mov eax, dword [eax]
mov ecx, dword [esi + 0x38]
lea ecx, [ecx + ecx + 2]
mov esi, dword [ebp - 0x854]
cmp dword [ebp - 0x840], edi
jae 0x45ceac
lea esi, [ebp - 0x854]
push ecx
push eax
mov eax, dword [ebp - 0x890]
push edx
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x890]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x88c]
call fcn.004b2d30
lea ecx, [ebp - 0x854]
call fcn.004b2d30
lea ecx, [ebp - 0x870]
call fcn.004b2d30
xor eax, eax
jmp 0x45cbf9