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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bb67
mov eax, dword fs:[0]
push eax
sub esp, 0x898
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 - 0x8a4], eax
cmp edi, ebx
je 0x45d004
cmp ecx, ebx
je 0x45d004
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 0x45cf70
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 - 0x8a0]
push ecx
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 1
mov dword [ebp - 0x8a0], 0x5c
call fcn.0043c720
mov esi, eax
cmp esi, 0xffffffff
jne 0x45d025
xor edx, edx
cmp dword [ebp - 0x85c], 8
mov dword [ebp - 0x840], 7
mov dword [ebp - 0x844], ebx
mov word [ebp - 0x854], dx
jb 0x45d004
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 - 0x88c]
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 - 0x878], 8
mov byte [ebp - 4], 1
jb 0x45d069
mov eax, dword [ebp - 0x88c]
push eax
call int.0042bfd0
add esp, 4
push esi
push ebx
lea ecx, [ebp - 0x88c]
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 - 0x878], esi
jb 0x45d0ad
mov edx, dword [ebp - 0x88c]
push edx
call int.0042bfd0
add esp, 4
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x890], ebx
cmp dword [ebp - 0x85c], esi
jae 0x45d0c7
lea eax, [ebp - 0x870]
push ebx
lea ecx, [ebp - 0x890]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
je 0x45d103
lea ecx, [ebp - 0x854]
call fcn.004b2d30
lea ecx, [ebp - 0x870]
call fcn.004b2d30
mov eax, esi
jmp 0x45d009
mov edi, dword [ebp - 0x8a4]
mov eax, dword [edi + 8]
sub eax, ebx
je 0x45d13a
dec eax
je 0x45d133
lea ecx, [ebp - 0x854]
call fcn.004b2d30
lea ecx, [ebp - 0x870]
call fcn.004b2d30
mov eax, 0x65e
jmp 0x45d009
mov esi, 4
jmp 0x45d13f
mov esi, 1
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]
add esp, 0xc
cmp dword [ebp - 0x840], 8
mov dword [ebp - 0x898], ebx
mov dword [ebp - 0x89c], 0x800
jae 0x45d182
lea eax, [ebp - 0x854]
lea ecx, [ebp - 0x89c]
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]
cmp eax, ebx
jne 0x45d27b
cmp dword [ebp - 0x898], esi
jne 0x45d113
xor eax, eax
mov dword [ebp - 0x878], 7
mov dword [ebp - 0x87c], ebx
mov word [ebp - 0x88c], ax
mov byte [ebp - 4], 4
cmp esi, 4
jne 0x45d223
mov edx, dword [ebp - 0x838]
push edx
push 0x5981f4
push 0x13
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
lea eax, [ebp - 0x38]
xor ecx, ecx
push 0xffffffffffffffff
push eax
mov word [ebp - 0x38], cx
call fcn.0053459e
add esp, 0x14
lea ecx, [ebp - 0x38]
push ecx
jmp 0x45d22f
cmp esi, 1
jne 0x45d23a
lea edx, [ebp - 0x838]
push edx
lea ecx, [ebp - 0x88c]
call fcn.00437b60
lea eax, [ebp - 0x88c]
push edi
push eax
call fcn.0045c7b0
add esp, 8
lea ecx, [ebp - 0x88c]
test al, al
jne 0x45d276
call fcn.004b2d30
lea ecx, [ebp - 0x854]
call fcn.004b2d30
lea ecx, [ebp - 0x870]
call fcn.004b2d30
xor eax, eax
jmp 0x45d009
call fcn.004b2d30
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x894], ebx
cmp esi, 4
jne 0x45d2b1
cmp dword [edi + 0x3c], 8
lea eax, [edi + 0x28]
jb 0x45d295
mov eax, dword [eax]
push eax
call fcn.005374b1
mov dword [ebp - 0x894], eax
add esp, 4
lea eax, [ebp - 0x894]
mov ecx, 4
jmp 0x45d2c8
cmp esi, 1
jne 0x45d2c8
cmp dword [edi + 0x3c], 8
lea eax, [edi + 0x28]
jb 0x45d2c1
mov eax, dword [eax]
mov ecx, dword [edi + 0x38]
lea ecx, [ecx + ecx + 2]
cmp dword [ebp - 0x840], 8
mov edx, dword [ebp - 0x854]
jae 0x45d2dd
lea edx, [ebp - 0x854]
push ecx
mov ecx, dword [ebp - 0x890]
push eax
push esi
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x890]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45d259