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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5992e1
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x61ce74]
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 ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x89c], ecx
mov dword [ebp - 0x8a0], eax
test ecx, ecx
je 0x45d8ca
test edx, edx
je 0x45d8ca
mov ecx, edx
mov dword [ebp - 0x858], 0
xor eax, eax
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d2d5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x868]
call fcn.00439df0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x86c], 7
mov word [ebp - 0x880], ax
cmp dword [ebp - 0x854], 8
lea edx, [ebp - 0x868]
mov ebx, dword [ebp - 0x858]
cmovae edx, dword [ebp - 0x868]
or esi, 0xffffffff
mov byte [ebp - 4], 1
test ebx, ebx
je 0x45d363
lea eax, [ebx - 1]
mov ecx, esi
cmp eax, esi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea edi, [edx + ecx*2]
je 0x45d35d
mov edi, edi
cmp edi, edx
je 0x45d363
sub edi, 2
cmp word [edi], 0x5c
jne 0x45d350
sub edi, edx
sar edi, 1
jmp 0x45d366
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x45d375
mov esi, 0x3f2
jmp 0x45d82d
lea ecx, [edi + 1]
mov dword [ebp - 0x83c], 7
xor eax, eax
mov word [ebp - 0x850], ax
cmp ebx, ecx
jb 0x45d8eb
sub ebx, ecx
lea eax, [ebp - 0x868]
cmp ebx, 0xffffffff
cmovb esi, ebx
cmp dword [ebp - 0x854], 8
mov dword [ebp - 0x898], esi
cmovae eax, dword [ebp - 0x868]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x894], eax
cmp esi, 7
ja 0x45d400
mov dword [ebp - 0x840], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.00540ed0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x850], ax
mov eax, dword [ebp - 0x850]
mov ebx, dword [ebp - 0x83c]
mov esi, dword [ebp - 0x840]
mov dword [ebp - 0x888], eax
jmp 0x45d463
cmp esi, 0x7ffffffe
ja 0x45d8f0
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x45d420
mov ebx, 0x7ffffffe
jmp 0x45d42a
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x850]
call fcn.004317d0
add esi, esi
mov dword [ebp - 0x888], eax
push esi
push dword [ebp - 0x894]
push eax
call fcn.00541450
mov eax, dword [ebp - 0x888]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov esi, dword [ebp - 0x898]
mov edx, dword [ebp - 0x86c]
cmp edx, 8
jb 0x45d4a3
mov ecx, dword [ebp - 0x880]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d499
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d8fa
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov eax, dword [ebp - 0x888]
lea ecx, [ebp - 0x850]
mov dword [ebp - 0x880], eax
mov eax, dword [ebp - 0x84c]
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x878], eax
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x874], eax
xor eax, eax
cmp dword [ebp - 0x858], edi
mov word [ebp - 0x850], ax
lea eax, [ebp - 0x868]
cmovb edi, dword [ebp - 0x858]
cmp dword [ebp - 0x854], 8
push edi
cmovae eax, dword [ebp - 0x868]
push eax
mov dword [ebp - 0x870], esi
mov dword [ebp - 0x86c], ebx
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 7
call fcn.00439df0
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x45d56a
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d560
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d8fa
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov eax, dword [ebp - 0x84c]
lea ecx, [ebp - 0x868]
mov edx, dword [ebp - 0x850]
mov dword [ebp - 0x864], eax
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x860], eax
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x840]
push 0
mov dword [ebp - 0x858], eax
mov eax, dword [ebp - 0x83c]
cmp eax, 8
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x884]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
cmovae ecx, edx
mov dword [ebp - 0x868], edx
push ecx
push dword [ebp - 0x89c]
mov dword [ebp - 0x884], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x45d82d
mov ebx, dword [ebp - 0x8a0]
mov eax, dword [ebx + 8]
sub eax, esi
je 0x45d618
sub eax, 1
je 0x45d611
mov esi, 0x65e
jmp 0x45d82d
mov esi, 4
jmp 0x45d61d
mov esi, 1
push 0x800
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x88c], 0
cmp dword [ebp - 0x86c], 8
lea ecx, [ebp - 0x8a4]
lea eax, [ebp - 0x880]
mov dword [ebp - 0x8a4], 0x800
cmovae eax, dword [ebp - 0x880]
push ecx
lea ecx, [ebp - 0x838]
push ecx
lea ecx, [ebp - 0x88c]
push ecx
push 0
push eax
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45d7a9
cmp dword [ebp - 0x88c], esi
je 0x45d699
mov esi, 0x65e
jmp 0x45d82d
xor eax, eax
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 7
mov word [ebp - 0x850], ax
mov byte [ebp - 4], 2
cmp esi, 4
jne 0x45d6fb
push dword [ebp - 0x838]
mov dword [ebp - 0x38], eax
push 0x5b6d6c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push 0x13
push eax
call fcn.0045dd10
add esp, 0x10
lea eax, [ebp - 0x38]
jmp 0x45d706
cmp esi, 1
jne 0x45d712
lea eax, [ebp - 0x838]
push eax
lea ecx, [ebp - 0x850]
call fcn.0045bc30
lea eax, [ebp - 0x850]
push ebx
push eax
call fcn.0045d900
mov edx, dword [ebp - 0x83c]
add esp, 8
test al, al
jne 0x45d76f
cmp edx, 8
jb 0x45d82b
mov ecx, dword [ebp - 0x850]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d760
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d8f5
push edx
push ecx
call fcn.0053d0af
add esp, 8
jmp 0x45d82b
cmp edx, 8
jb 0x45d7a9
mov ecx, dword [ebp - 0x850]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d79f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d8f5
push edx
push ecx
call fcn.0053d0af
add esp, 8
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x890], ecx
cmp esi, 4
jne 0x45d7df
cmp dword [ebx + 0x38], 8
lea eax, [ebx + 0x24]
jb 0x45d7c3
mov eax, dword [eax]
push eax
call fcn.005544de
add esp, 4
mov dword [ebp - 0x890], eax
lea ecx, [ebp - 0x890]
mov edx, 4
jmp 0x45d7f9
cmp esi, 1
jne 0x45d7f9
cmp dword [ebx + 0x38], 8
lea ecx, [ebx + 0x24]
jb 0x45d7ef
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x34]
lea edx, [eax*2 + 2]
cmp dword [ebp - 0x86c], 8
lea eax, [ebp - 0x880]
push edx
cmovae eax, dword [ebp - 0x880]
push ecx
push esi
push 0
push eax
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edx, dword [ebp - 0x86c]
cmp edx, 8
jb 0x45d86d
mov ecx, dword [ebp - 0x880]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d863
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d8fa
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov edx, dword [ebp - 0x854]
xor eax, eax
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x86c], 7
mov word [ebp - 0x880], ax
cmp edx, 8
jb 0x45d8c6
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d8bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d8fa
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov eax, esi
jmp 0x45d8cf
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.0053d079
mov esp, ebp
pop ebp
ret
call fcn.00439a20
call fcn.00431760
call fcn.0054b0c3
call fcn.0054b0c3
int3