Function at 0x46895f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], 0
call fcn.00407150
lea ecx, [esp + 0x38]
call fcn.00407150
lea ecx, [esp + 0x58]
call fcn.00407150
mov ebx, dword [ebp + 0xc]
mov edi, 0x4858e8
call fcn.0040f8f0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
push eax
call fcn.00451573
sub esp, 0x10
mov edi, eax
mov esi, esp
call fcn.004015c0
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00460f35
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub esp, 0x10
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
inc dword [ecx]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00460d3c
test al, al
jne 0x468a1d
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0
push 2
add eax, ecx
call fcn.00403bd0
jmp 0x468de0
lea eax, [esp + 0x48]
push eax
call fcn.0043a8df
mov byte [esp + 0x13], al
test al, al
jne 0x468a76
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x468a70
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
push 0
push eax
mov eax, dword [ecx + 4]
add eax, esi
call fcn.00403b90
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push 3
add eax, esi
call fcn.00403bd0
jmp 0x468de0
mov eax, dword [esp + 0x20]
jmp 0x468a7a
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x5c]
or edx, 0x20019
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x468ad6
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
push 0
push eax
mov eax, dword [edx + 4]
add eax, esi
call fcn.00403b90
cmp byte [esp + 0x13], 0
jne 0x468ac1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
push 0
push 1
add eax, esi
call fcn.00403bd0
jmp 0x468de0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
push 0
push eax
call fcn.00451573
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov eax, dword [esp + 0x2c]
push eax
call edi
mov esi, dword [esp + 0x1c]
push 0
test eax, eax
je 0x468b4a
mov ecx, dword [esi]
push eax
mov eax, dword [ecx + 4]
add eax, esi
call fcn.00403b90
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push 0xffffffffffffffff
add eax, esi
call fcn.00403bd0
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
cmp byte [esp + 0x13], 0
jne 0x468de0
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x468dde
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 4]
push edx
add eax, esi
call fcn.00403b90
mov eax, dword [esp + 0x28]
dec eax
cmp eax, 6
ja case.0x468b69.5
jmp dword [eax*4 + 0x468e07]
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c3a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
add esp, 4
lea edx, [esp + 0x14]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x38], eax
call fcn.00451573
push eax
mov eax, dword [esp + 0x2c]
push eax
call edi
test eax, eax
jne 0x468be0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [edi + eax*2], cx
call fcn.0040f8f0
push edi
call fcn.0041294d
add esp, 4
jmp 0x468dc5
mov edx, dword [esi]
push 0
push eax
mov eax, dword [edx + 4]
add eax, esi
call fcn.00403b90
mov eax, dword [esi]
mov eax, dword [eax + 4]
push 0
push 0xfffffffffffffffe
add eax, esi
call fcn.00403bd0
mov edi, dword [esp + 0x24]
push edi
call fcn.0041294d
add esp, 4
jmp 0x468dc5
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c3a
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
lea edx, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
call fcn.00451573
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x468cca
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [edi + eax*2], cx
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jbe 0x468cb7
cmp word [edi + ecx*2 - 2], 0
jne 0x468c84
dec ecx
mov dword [esp + 0x14], ecx
xor eax, eax
test ecx, ecx
jbe 0x468ca8
jmp 0x468c8f
cmp word [edi + eax*2], 0
jne 0x468ca3
mov edx, 0xa
mov word [edi + eax*2], dx
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
jb 0x468c8f
cmp word [edi + eax*2 - 2], 0xa
jne 0x468cb7
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
call fcn.0040f8f0
push edi
call fcn.0041294d
add esp, 4
jmp 0x468dc5
mov edx, dword [esi]
push 0
push eax
mov eax, dword [edx + 4]
add eax, esi
call fcn.00403b90
mov eax, dword [esi]
mov eax, dword [eax + 4]
push 0
push 0xfffffffffffffffe
add eax, esi
call fcn.00403bd0
push edi
call fcn.0041294d
add esp, 4
jmp 0x468dc5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [esp + 0x14], 4
mov eax, dword [edx + 4]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push 0
push eax
call fcn.00451573
push eax
mov eax, dword [esp + 0x2c]
push eax
call edi
fild dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
test ecx, ecx
jge 0x468d36
fadd qword [0x48d260]
mov esi, ebx
fstp qword [esp + 0x2c]
call fcn.004043a0
fld qword [esp + 0x2c]
fstp qword [ebx]
mov dword [ebx + 8], 3
jmp 0x468dc5
mov edx, dword [esp + 0x14]
push edx
push ebx
call fcn.004512a0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
lea edx, [esp + 0x14]
push edx
push eax
push 0
push 0
push ecx
call fcn.00451573
push eax
mov eax, dword [esp + 0x2c]
push eax
call edi
test eax, eax
je 0x468dc5
mov ecx, dword [esi]
push 0
push eax
mov eax, dword [ecx + 4]
add eax, esi
call fcn.00403b90
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0
push 0xfffffffffffffffe
add eax, esi
call fcn.00403bd0
mov esi, ebx
call fcn.004043a0
mov dword [ebx + 8], 1
mov dword [ebx], 0
jmp 0x468dc5
mov eax, dword [esi]
mov eax, dword [eax + 4]
push 0
push 0xfffffffffffffffe
add eax, esi
call fcn.00403bd0
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
cmp byte [esp + 0x13], 0
jne 0x468de0
mov edx, dword [esp + 0x20]
push edx
call esi
lea ecx, [esp + 0x58]
call fcn.004020b0
lea ecx, [esp + 0x38]
call fcn.004020b0
lea ecx, [esp + 0x48]
call fcn.004020b0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8