Function at 0x4554a0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4bc421
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4eb86c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x254]
mov ebp, dword [esp + 0x258]
xor ebx, ebx
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x17], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov al, byte [esp + 0x260]
neg al
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x250], ebx
sbb eax, eax
and eax, 0xffffff00
add eax, 0x200
or eax, 0x2001f
push eax
push ebx
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4556f6
xor edi, edi
lea ebx, [ebx]
push 0x208
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00489e60
mov eax, dword [esp + 0x3c]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x4c]
push edx
push edi
push eax
mov dword [esp + 0x54], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x4555c8
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405b00
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x250], 1
call fcn.00447b90
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45560a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45560a
cmp esi, 0x103
jne 0x4555f5
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jne 0x4555e3
xor eax, eax
push eax
push ebp
push str.RegEnumKeyEx_finished:_s__SubKeys:_d_
jmp 0x4555fc
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
push eax
push ebp
push str.RegEnumKeyEx_finished:_s__SubKeys:_d_
jmp 0x4555fc
push esi
push ebp
push str.RegEnumKeyEx_failed:_s__x_
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0x10
add edi, 1
cmp esi, ebx
je 0x455540
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x45571b
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x45571b
call fcn.0045a356
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4556ec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov byte [esp + 0x24c], 2
je 0x455680
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x455689
call fcn.00488c34
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edi*4]
push ecx
push ebp
lea edx, [esp + 0x20]
push str._s_s
push edx
call fcn.00404ae0
mov eax, dword [esp + 0x270]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
push eax
push 1
push esi
push ecx
call fcn.004554a0
add esp, 0x20
cmp al, bl
jne 0x4556c1
mov byte [esp + 0x17], bl
lea eax, [esi - 0x10]
mov byte [esp + 0x24c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4556e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
jmp 0x455622
push 0x80004005
call fcn.00401000
cmp eax, 2
jne 0x455702
mov byte [esp + 0x17], 1
jmp 0x45571b
push eax
push ebp
push str.RegOpenKeyEx_failed:_s__x_
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0x10
mov byte [esp + 0x17], bl
cmp byte [esp + 0x25c], bl
je 0x455763
mov ecx, dword [esp + 0x260]
mov edx, dword [esp + 0x2c]
push ecx
push ebp
push edx
call fcn.004552a0
add esp, 0xc
cmp eax, ebx
je 0x45575e
cmp eax, 2
je 0x45575e
push eax
push ebp
push str.MyRegDeleteKey_failed:_s__x_
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0x10
mov byte [esp + 0x17], bl
jmp 0x455763
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x24c], 0xffffffff
je 0x455798
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
push ecx
push eax
call fcn.0040d020
mov edx, dword [esp + 0x30]
push edx
call fcn.00458aee
add esp, 0x14
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004888ae
add esp, 0x23c
ret