Function at 0x54a7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x110]
sub esp, 0x110
push 0xffffffffffffffff
push 0x5c382d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x71c56c]
xor eax, ebp
mov dword [ebp + 0x10c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp + 0x118]
mov dword [ebp - 0x4c], ebx
mov eax, dword [eax]
mov dword [ebp - 0x50], ebx
test eax, eax
jne 0x54a85a
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 2
jmp 0x54ae01
mov edi, dword [ebp + 0x120]
xor ecx, ecx
cmp dword [ebp + 0x11c], ecx
mov dword [ebp - 0x44], ecx
cmove edi, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x54a840
mov eax, dword [ebp - 0x44]
cmp eax, 1
je 0x54a8a3
cmp eax, 2
je 0x54a8a3
cmp eax, 7
mov eax, dword [ebp - 0x20]
jne 0x54a8ac
add eax, 4
jmp 0x54a8a9
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0xc]
mov dword [ebp], 0x100
mov esi, eax
mov dword [ebp + 4], 0
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 0
cmp esi, 0x100
jle 0x54a8ed
push eax
call fcn.00593ac8
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x54ae28
mov eax, dword [ebp - 0x20]
mov dword [ebp], esi
mov dword [ebp + 4], esi
push eax
push 0
push ecx
mov dword [ebp - 4], 1
call fcn.00591af0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x40]
push 0
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.0x54a92e.6
mov eax, dword [ebp - 0x44]
cmp eax, 0xb
ja case.0x54a92e.6
jmp dword [eax*4 + 0x54ae30]
cmp dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
jbe 0x54a961
push 0xffffffffffffffff
push dword [ebp + 8]
push eax
call fcn.004ae6d0
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004c3a60
lea ecx, [ebp - 0x2c]
call fcn.004019e0
jmp 0x54adee
push eax
mov ecx, ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.004c3a60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x54adee
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54adee
push 4
push 2
push dword [ebp - 0x2c]
call fcn.004597e0
add esp, 0xc
jmp 0x54adee
cmp dword [ebp - 0x20], 0
jbe 0x54aceb
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.004ae6d0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
lea ecx, [eax + 1]
mov dword [ebp - 0x40], ecx
test eax, eax
je 0x54ac71
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x48], ecx
test ebx, ebx
je 0x54aac9
cmp dword [ebx], 1
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
jg 0x54aac9
mov edi, dword [ebp - 0x14]
lea eax, [ebx + 0xf]
and eax, 0xfffffffc
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x3c], eax
mov ecx, edi
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [ebx + 8]
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
sub eax, esi
je 0x54aa80
lea eax, [esi + esi*2]
lea ecx, [edi + eax*4]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx], edi
mov dword [ecx + 8], eax
test edi, edi
je 0x54abfb
mov eax, 1
lock xadd dword [edi], eax
jmp 0x54abfb
test esi, esi
jne 0x54aac6
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x3c]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x54aac6
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
mov dword [ecx - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx - 0xc], edi
mov dword [ecx - 4], eax
test edi, edi
je 0x54aabd
mov eax, 1
lock xadd dword [edi], eax
sub dword [ebp - 0x14], 0xc
jmp 0x54abfb
mov ecx, dword [ebp - 0x48]
movq xmm0, qword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
test edi, edi
je 0x54aaef
mov eax, 1
lock xadd dword [edi], eax
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 4
test esi, esi
je 0x54aaff
test ecx, ecx
jne 0x54aaff
mov al, 1
jmp 0x54ab01
xor al, al
movzx edx, al
mov byte [ebp - 0x19], al
mov dword [ebp - 0x3c], edx
test ebx, ebx
je 0x54ab87
cmp dword [ebx], 1
jg 0x54ab84
cmp edx, 1
jne 0x54ab32
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
add ecx, 0xf
and ecx, 0xfffffffc
mov eax, ebx
sub eax, ecx
cmp eax, 0xc
jl 0x54ab6b
mov edi, dword [ebp - 0x38]
jmp 0x54ab97
test al, al
jne 0x54ab6b
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov ecx, ebx
lea eax, [esi + 0xf]
and eax, 0xfffffffc
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esi + 8]
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
sub eax, dword [ebp - 0x10]
cmp eax, 1
jl 0x54ab68
mov edi, dword [ebp - 0x38]
jmp 0x54ab97
mov edx, dword [ebp - 0x3c]
push 0
push 1
push edx
lea ecx, [ebp - 0x18]
call fcn.0045dae0
test al, al
je 0x54ab81
mov edi, dword [ebp - 0x38]
jmp 0x54ab94
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
push 0
push 1
push edx
lea ecx, [ebp - 0x18]
call fcn.00479b10
mov ebx, dword [ebp - 0x14]
cmp byte [ebp - 0x19], 0
je 0x54abb2
mov eax, dword [ebp - 0x34]
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx - 0xc], edi
mov dword [ebx - 4], eax
sub dword [ebp - 0x14], 0xc
jmp 0x54abe2
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + ecx*2]
lea esi, [ebx + eax*4]
mov eax, dword [ebp - 0x10]
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 2
push eax
lea eax, [esi + 0xc]
push esi
push eax
call fcn.00591570
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esi], edi
mov dword [esi + 8], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x54ac0d
cmp dword [eax], 1
mov edi, dword [ebp - 0x38]
jle 0x54ac1b
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00479b10
mov byte [ebp - 4], 2
test edi, edi
je 0x54ac41
or eax, 0xffffffff
lock xadd dword [edi], eax
cmp eax, 1
setne al
test al, al
jne 0x54ac41
push 4
push 2
push edi
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x40]
push 0xffffffffffffffff
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004ae6d0
add esp, 0xc
mov eax, dword [ebp - 0x30]
inc edi
add edi, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x40], edi
test eax, eax
jne 0x54aa05
mov ebx, dword [ebp - 0x50]
lea ecx, [ebp - 0x38]
call fcn.004019e0
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004c38d0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x54adee
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54adee
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
lea eax, [eax + eax*2]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x54acd7
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x54acd0
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54acd0
push 4
push 2
push dword [esi]
call fcn.004597e0
add esp, 0xc
add esi, 0xc
cmp esi, edi
jne 0x54acb0
push 4
push 0xc
push dword [ebp - 0x18]
call fcn.004597e0
add esp, 0xc
jmp 0x54adee
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
mov ecx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.004c38d0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x54adee
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54adee
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
lea eax, [eax + eax*2]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x54ad5d
mov ecx, dword [esi]
test ecx, ecx
je 0x54ad56
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x54ad56
push 4
push 2
push dword [esi]
call fcn.004597e0
add esp, 0xc
add esi, 0xc
cmp esi, edi
jne 0x54ad36
push 4
push 0xc
push dword [ebp - 0x2c]
call fcn.004597e0
add esp, 0xc
jmp 0x54adee
cmp dword [ebp - 0x20], 0
jbe 0x54ada1
mov eax, dword [ebp + 4]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.004ae6d0
add esp, 0xc
mov ecx, ebx
push eax
call fcn.004c3a60
lea ecx, [ebp - 0x2c]
call fcn.004019e0
jmp 0x54adee
lea eax, [ebp - 0x2c]
jmp 0x54a961
mov eax, dword [ebp + 8]
mov ecx, ebx
push dword [eax]
call fcn.004c3b10
jmp 0x54adee
mov eax, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [eax]
bswap eax
push eax
call fcn.004c3b10
jmp 0x54adee
mov eax, dword [ebp + 8]
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
call fcn.004c3e50
jmp 0x54adee
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 2
add eax, edi
inc ebx
or byte [eax], al
add byte [eax], al
add bh, al
inc ebx
adc byte [edx], al
add byte [eax], al
add byte [ebx + 0x4d8d0845], cl
or al, 0x3b
sal dword [ecx + ecx + 0x50], 0xe8
aad 0x8c
add al, 0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x54ae01
push eax
call fcn.00593ad3
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10c]
xor ecx, ebp
call fcn.0058e709
lea esp, [ebp + 0x110]
pop ebp
ret 0xc
call fcn.00497e10
nop dword [eax]
jno 0x54addf
push esp
add byte [0x350054a9], dh
test eax, 0xad710054
push esp
add byte [ecx - 0x48ffab53], ch
lodsd eax, dword [esi]
push esp
add cl, bl
lodsd eax, dword [esi]
push esp
add byte [ebp - 0x26ffab57], ch
lodsd eax, dword [esi]
push esp
add cl, bl
lodsd eax, dword [esi]
push esp
add cl, bl
lodsd eax, dword [esi]
push esp
add al, cl
lodsd eax, dword [esi]
push esp
invalid