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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x496c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4be7b4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x496c57
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0
mov eax, dword [0x4be7b4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.00410da4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x4be75c]
mov edx, dword [edx]
mov eax, dword [0x4beb80]
mov eax, dword [eax]
call fcn.0049c32c
test al, al
je 0x496c4b
mov edx, dword [ebp - 0x28]
mov al, 0xb
call fcn.004a0974
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20]
call fcn.0049bfa0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
call fcn.0049f014
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
call fcn.0049f014
mov eax, dword [0x4beafc]
mov al, byte [eax]
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 4
je 0x4965fe
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 8
je 0x49661f
mov eax, dword [0x4be79c]
cmp byte [eax], 0
jne 0x49661b
mov eax, 0x496ca8
call fcn.00475210
mov byte [ebp - 0x21], 2
mov byte [ebp - 0x29], 0
xor edx, edx
push ebp
push 0x496b2c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x49665e
mov eax, dword [ebp - 0x20]
call fcn.0049634c
test al, al
je 0x49665e
mov eax, dword [ebp - 0x20]
call fcn.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044d968
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x496674
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x496b22
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x4966ce
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
jne 0x4966ce
push 0
push 2
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044d8c4
test eax, eax
jne 0x496b22
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00407470
mov eax, dword [ebp - 4]
push eax
call fcn.00407458
jmp 0x496b22
mov eax, dword [ebp - 0x3c]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, byte [ebp - 0x21]
call fcn.00496370
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 2
jne 0x496761
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044d88c
mov ebx, eax
test ebx, ebx
jne 0x496745
cmp dword [ebp - 8], 1
jne 0x4967b6
mov eax, dword [ebp - 0x3c]
movsx eax, word [eax + 0x3c]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, byte [ebp - 0x21]
call fcn.00496370
jmp 0x4967b6
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x4967b6
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, 1
call fcn.00491a60
jmp 0x4967b6
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x4967b1
push 0
push 3
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403efc
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x21]
call fcn.0044d8c4
mov ebx, eax
test ebx, ebx
je 0x4967b6
cmp ebx, 2
je 0x4967b6
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x4967b6
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
mov al, 2
call fcn.00491a60
jmp 0x4967b6
mov ebx, 2
test ebx, ebx
jne 0x496b22
xor edx, edx
push ebp
push 0x496b1b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x4967e7
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00407470
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je case.0x49682a.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 1
je 0x496817
mov eax, dword [ebp - 0xc]
call fcn.00403efc
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0044d80c
test al, al
jne case.0x49682a.0
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + 0x3e]
xor edx, edx
mov dl, al
cmp edx, 6
ja case.0x49682a.0
jmp dword [edx*4 + 0x496831]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x496860
sub dl, 3
je 0x496867
jmp 0x49686c
mov ebx, 2
jmp 0x49686c
mov ebx, 7
cmp al, 5
je 0x49690b
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x496cf0
call fcn.00404024
test eax, eax
je 0x4968a1
mov eax, dword [ebp - 0xc]
call fcn.00403efc
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0044d7f4
test al, al
jne 0x4968a9
lea eax, [ebp - 0x14]
call fcn.00403ab8
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x20
je 0x4968e1
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00407498
test eax, eax
jne 0x4968e1
cmp dword [ebp - 0x18], 1
je 0x4968de
cmp dword [ebp - 0x18], 2
jne 0x4968e1
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov eax, 0x496d04
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.0049f034
jmp 0x49699a
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x496cf0
call fcn.00404024
test eax, eax
je 0x496938
mov eax, dword [ebp - 0xc]
call fcn.00403efc
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0044d800
test al, al
jne 0x496940
lea eax, [ebp - 0x14]
call fcn.00403ab8
lea eax, [ebp - 0x10]
push eax
mov eax, 0x496d04
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov eax, 0x496d14
mov dword [ebp - 0x4c], eax
mov eax, 0x496d24
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.0049f034
cmp dword [ebp - 0x10], 0
je 0x49699a
mov eax, dword [ebp - 0x10]
call fcn.00403d38
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0
je 0x49699a
lea eax, [ebp - 0x10]
mov edx, 0x496d24
call fcn.00403d40
mov eax, dword [ebp - 0x10]
call fcn.00403d38
inc eax
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403efc
push eax
push ebx
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004074a0
mov ebx, eax
test ebx, ebx
je case.0x49682a.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x49682a.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
xor eax, eax
call fcn.00491a60
jmp case.0x49682a.0
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0049f014
mov eax, dword [ebp - 0x58]
call fcn.00409cdc
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004074a0
mov ebx, eax
test ebx, ebx
je case.0x49682a.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x49682a.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
xor eax, eax
call fcn.00491a60
jmp case.0x49682a.0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0049f014
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x34]
call fcn.00450e50
test al, al
jne 0x496a78
mov eax, 0x496d30
call fcn.00475210
push 8
lea eax, [ebp - 0x34]
push eax
push 0xb
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004074a0
mov ebx, eax
test ebx, ebx
je case.0x49682a.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x49682a.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
xor eax, eax
call fcn.00491a60
jmp case.0x49682a.0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.00403d38
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.00403efc
push eax
push 3
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004074a0
mov ebx, eax
test ebx, ebx
je case.0x49682a.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x49682a.0
push ebx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x20]
xor eax, eax
call fcn.00491a60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496b22
mov eax, dword [ebp - 4]
push eax
call fcn.00407458
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x496b5a
cmp byte [ebp - 0x29], 0
jne 0x49661f
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 8
je 0x496b9e
mov eax, dword [ebp - 0x20]
call fcn.0049634c
test al, al
je 0x496b9e
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x86
call fcn.0047c56c
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x10
je 0x496bd8
mov eax, dword [ebp - 0x20]
call fcn.0049634c
test al, al
je 0x496bd8
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x88
call fcn.0047c56c
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 2
je 0x496c0c
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x89
call fcn.0047c56c
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 4
je 0x496c40
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x21]
mov dx, 0x87
call fcn.0047c56c
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x1c]
call fcn.0049bfcc
inc dword [ebp - 0x28]
dec dword [ebp - 0x38]
jne 0x49656d
mov eax, 0x3e8
call fcn.004911ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496c98
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00403adc
lea eax, [ebp - 0x20]
call fcn.00403ab8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403adc
ret