Function at 0x45d060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5756c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x45d249
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x45d240
cmp dword [ebp - 0x14], eax
je 0x45d240
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edi, 2
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005243ff
mov esi, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mul edi
mov byte [ebp - 4], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005243ff
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x14], ebx
jbe 0x45d22e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x45d224
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x45d2ad
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
dec eax
je 0x45d1d9
sub eax, 3
jne 0x45d25d
push dword [edi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 4
push 0x57a904
push eax
call fcn.0045acb0
add esp, 0xc
jmp 0x45d1e9
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x3c], 1
call fcn.0045a5f0
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0045c280
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
lea ecx, [eax + 4]
lea eax, [ebp - 0x38]
push eax
call fcn.0045a580
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d224
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x45d150
push edi
call fcn.0052586e
push esi
call fcn.0052586e
mov ebx, dword [ebp - 0x34]
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x38]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d287
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.0052586e
push esi
call fcn.0052586e
add esp, 8
mov eax, 0xb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0045a8f0
int3