Function at 0x46c090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x148
push 0xffffffffffffffff
push 0x64b1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x144], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x150]
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
wait
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x2c], vtable.CProtection.0
mov byte [ebp - 4], 1
mov byte [ebp + 0x110], bl
mov edi, 0x110
push edi
push ebx
lea ecx, [ebp]
push ecx
call fcn.00620920
push ebx
call fcn.006239e1
push eax
call fcn.00624f58
add esp, 0x14
call fcn.00624f6a
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fdiv qword [0x684fa0]
fmul qword [0x684f98]
fnstcw word [ebp - 0x12]
movzx eax, word [ebp - 0x12]
or eax, 0xc00
mov dword [ebp - 0x20], eax
fldcw word [ebp - 0x20]
fistp qword [ebp - 0x50]
fldcw word [ebp - 0x12]
mov edx, dword [ebp - 0x50]
mov eax, 0x3e8
sub eax, edx
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x48]
cmp dword [0x752d2c], ebx
jne 0x46c3cb
call fcn.0051c910
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
mov ecx, dword [0x75f1dc]
push ecx
mov edx, dword [0x75dbac]
neg edx
sbb edx, edx
add edx, 0x80000002
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call ebx
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x46c25a
cmp esi, 2
je 0x46c256
lea ecx, [ebp - 0x18]
call fcn.00402510
mov byte [ebp - 4], 3
cmp dword [0x75dbac], 0
mov eax, str.CURRENT_USER
jne 0x46c1c2
mov eax, str.MACHINE
mov ecx, dword [0x75f1dc]
push ecx
push eax
push 0x67bc94
lea edx, [ebp - 0x18]
push edx
call fcn.00402f80
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
call fcn.0051ca00
test eax, eax
je 0x46c210
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0
mov edx, dword [0x75f1dc]
push edx
mov eax, dword [0x75dbac]
neg eax
sbb eax, eax
add eax, 0x80000002
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
je 0x46c24a
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x48]
call fcn.0051cad0
test eax, eax
je 0x46c24a
lea edx, [ebp - 0x14]
push edx
push 1
push 0
mov eax, dword [0x75f1dc]
push eax
mov ecx, dword [0x75dbac]
neg ecx
sbb ecx, ecx
add ecx, 0x80000002
push ecx
call ebx
mov esi, eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402580
test esi, esi
jne 0x46c28c
mov dword [ebp - 0x4c], edi
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp]
push eax
push 0
push 0
mov ecx, dword [0x75f59c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46c282
mov byte [ebp], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp], 0
jne 0x46c3ab
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x58]
call fcn.0051c910
mov bl, 4
mov byte [ebp - 4], bl
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x46c367
lea ecx, [ebp - 0x18]
call fcn.00402510
mov byte [ebp - 4], 5
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push str.CURRENT_USER_s
lea edx, [ebp - 0x18]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.0051ca00
test eax, eax
je 0x46c35a
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareClassesCLSIDE6871B76_C3C8_44DD_B947_ABFFE144860D
push 0x80000001
call esi
test eax, eax
jne 0x46c35a
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
push 0
push 0
mov ecx, dword [0x75f59c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46c350
mov byte [ebp], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402580
jmp 0x46c395
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp]
push edx
push 0
push 0
mov eax, dword [0x75f59c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46c38b
mov byte [ebp], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.0051c970
cmp byte [ebp], 0
je 0x46c559
mov edx, dword [0x75e960]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c3b6
sub eax, esi
push eax
push edx
push edi
lea eax, [ebp]
push eax
jmp 0x46c551
call fcn.0051c910
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], edi
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [0x75f1e0]
push edx
xor eax, eax
cmp byte [0x75dbd0], al
setne al
add eax, 0x80000001
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call esi
cmp eax, ebx
je 0x46c503
lea ecx, [ebp - 0x18]
call fcn.00402510
mov byte [ebp - 4], 7
cmp byte [0x75dbd0], 0
mov eax, str.MACHINE
jne 0x46c42c
mov eax, str.CURRENT_USER
mov ecx, dword [0x75f1e0]
push ecx
push eax
push 0x67bc94
lea edx, [ebp - 0x18]
push edx
call fcn.00402f80
add esp, 0x10
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
call fcn.0051ca00
test eax, eax
je 0x46c48d
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [0x75f1e0]
push edx
xor eax, eax
cmp byte [0x75dbd0], al
setne al
add eax, 0x80000001
push eax
call esi
test eax, eax
jne 0x46c48d
mov dword [ebp - 0x38], ebx
jmp 0x46c4c9
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
call fcn.0051cad0
test eax, eax
je 0x46c4f5
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [0x75f1e0]
push edx
xor eax, eax
cmp byte [0x75dbd0], al
setne al
add eax, 0x80000001
push eax
call esi
test eax, eax
jne 0x46c4f5
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp]
push edx
push ebx
push ebx
mov eax, dword [0x75f59c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x46c4eb
mov byte [ebp], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.00402580
jmp 0x46c530
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp]
push ecx
push ebx
push ebx
mov edx, dword [0x75f59c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x46c526
mov byte [ebp], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp], 0
je 0x46c559
mov edx, dword [0x75e960]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c541
sub eax, esi
push eax
push edx
push edi
lea edx, [ebp]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00448880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.0051c970
lea ecx, [ebp]
cmp dword [0x752d2c], 0
je 0x46c5b7
mov eax, dword [0x75f598]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c596
test dl, dl
je 0x46c592
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c596
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c576
xor eax, eax
jmp 0x46c59b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x46c78b
mov dword [ebp - 0x1c], 8
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x1c
jmp 0x46c783
mov eax, dword [0x75f58c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c5e0
test dl, dl
je 0x46c5dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c5e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c5c0
xor eax, eax
jmp 0x46c5e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46c5a3
lea ecx, [ebp]
mov eax, dword [0x75f590]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c611
test dl, dl
je 0x46c60d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c611
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c5f1
xor eax, eax
jmp 0x46c616
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46c5a3
lea ecx, [ebp]
mov eax, dword [0x75f594]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c642
test dl, dl
je 0x46c63e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c642
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c622
xor eax, eax
jmp 0x46c647
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46c5a3
lea ecx, [ebp]
mov eax, dword [0x75f598]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46c677
test dl, dl
je 0x46c673
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46c677
add eax, 2
add ecx, 2
test dl, dl
jne 0x46c657
xor eax, eax
jmp 0x46c67c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x46c78b
lea eax, [ebp - 0x24]
push eax
push 1
push 0
mov ecx, dword [0x75f4a0]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
lea eax, [ebp + 0x110]
jne 0x46c6fd
mov esi, 0x32
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x18]
push edx
push eax
push 0
push 0
mov ecx, dword [0x75f490]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
je 0x46c6f1
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x110]
push ecx
push 0
push 0
mov edx, dword [0x75f490]
push edx
mov eax, dword [0x75dbe4]
push eax
call edi
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46c721
mov dword [ebp - 0x14], 0x32
lea edx, [ebp - 0x14]
push edx
push eax
push 0
push 0
mov ecx, dword [0x75f490]
push ecx
mov edx, dword [0x75dbe4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x110]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46c730
sub eax, edx
cmp eax, 0x17
jne 0x46c75f
mov al, 0x2d
cmp byte [ebp + 0x115], al
jne 0x46c75f
cmp byte [ebp + 0x11b], al
jne 0x46c75f
cmp byte [ebp + 0x121], al
jne 0x46c75f
mov dword [ebp - 0x1c], 6
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 7
jbe 0x46c775
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x1c
jmp 0x46c783
cmp dword [ebp - 0x1c], 7
jae 0x46c78b
push 0
mov ecx, dword [ebp - 0x20]
push ecx
push 0x1d
mov ecx, dword [ebp - 0x34]
call fcn.004248e0
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], vtable.CProtection.0
wait
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.0062023e
add ebp, 0x148
mov esp, ebp
pop ebp
ret