Function at 0x10054050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0fd6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
jne 0x10054288
mov esi, dword [ebp + 8]
mov ecx, esi
mov dl, byte [ebp + 0xc]
call fcn.10053d40
mov ebx, eax
mov dword [ebp - 0x18], 0x100c8760
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
call fcn.10055620
cmp byte [eax + 0x1c], 0
je 0x1005423d
call fcn.10055620
mov edi, eax
call fcn.1003aaa0
test eax, eax
je 0x1005456b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
push 0x1a
push str.Registry_KEY_existence_of
call fcn.1003f390
mov edx, dword [esi]
test edx, edx
je 0x10054110
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100540f7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.1003f390
push 5
push str._is:
lea ecx, [ebp + 0xc]
call fcn.1003f390
mov eax, str.does_not_exist
test ebx, ebx
mov esi, str.exists
cmove esi, eax
call fcn.1003aaa0
test eax, eax
je 0x1005456b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
push esi
call fcn.1003f670
test al, al
jne 0x10054179
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054160
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x10]
call fcn.1003f950
mov byte [ebp - 4], 5
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100541a9
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054190
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0xc]
call fcn.1003f390
call fcn.1003aaa0
test eax, eax
je 0x1005456b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp + 8]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
sub esp, 8
call fcn.10055700
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10054206
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10054221
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1005423d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0x14], 0
je 0x1005424b
test ebx, ebx
setne byte [ebp + 0xf]
jmp 0x10054251
test ebx, ebx
sete byte [ebp + 0xf]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0x100c8760
test ebx, ebx
je 0x10054271
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 8]
push 0x5c
push dword [ebx]
call fcn.100780b3
mov esi, eax
mov dword [ebp + 0x10], 3
add esp, 8
or edi, 0xffffffff
test esi, esi
je 0x10054390
sub esi, dword [ebx]
sar esi, 1
js 0x10054390
push esi
push 0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10040470
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x14]
mov dl, byte [ebp + 0xc]
call fcn.10053d40
mov ebx, eax
mov dword [ebp - 0x20], 0x100c8760
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xf
test ebx, ebx
je 0x1005434f
lea ecx, [esi + 1]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, edx
push eax
call fcn.10040470
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 1
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x10], ecx
and ecx, 0xfffffffe
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xf
mov eax, edi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005434f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x20], 0x100c8760
test ebx, ebx
je 0x1005436c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005438d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
call fcn.10055620
cmp byte [eax + 0x1c], 0
je 0x10054530
call fcn.10055620
mov dword [ebp - 0x14], eax
call fcn.1003aaa0
test eax, eax
je 0x1005456b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0x15
lea ecx, [ebp + 0xc]
push 0x1c
push str.Registry_value_existence_of
call fcn.1003f390
mov edx, dword [ebx]
test edx, edx
je 0x100543fb
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100543e2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.1003f390
push 5
push str._is:
lea ecx, [ebp + 0xc]
call fcn.1003f390
mov ebx, dword [ebp + 0x10]
mov eax, str.does_not_exist
test ebx, ebx
mov esi, str.exists
cmovne esi, eax
call fcn.1003aaa0
test eax, eax
je 0x1005456b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x10]
push esi
call fcn.1003f670
test al, al
jne 0x10054469
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054450
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x10]
call fcn.1003f950
mov byte [ebp - 4], 0x17
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10054499
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054480
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0xc]
call fcn.1003f390
call fcn.1003aaa0
test eax, eax
je 0x1005456b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp + 8]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
sub esp, 8
call fcn.10055700
mov byte [ebp - 4], 0x17
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100544f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005450f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10054533
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10054533
mov ebx, dword [ebp + 0x10]
cmp byte [ebp + 0x14], 0
je 0x10054552
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.100374f0
int3