Function at 0x10154fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x42c], eax
call fcn.10009c50
mov ebx, eax
mov dword [ebp - 0x43c], ebx
test ebx, ebx
je 0x10154fea
cmp dword [ebp + 0x10], 0
mov edi, 0xf013f
jne 0x10154fef
mov edi, 0xf023f
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10155005
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x1015502d
lea ecx, [ebp - 0x430]
push ecx
push edi
push 0
push dword [ebp - 0x42c]
push dword [ebp - 0x428]
call eax
jmp 0x10155049
lea eax, [ebp - 0x430]
push eax
push edi
push 0
push dword [ebp - 0x42c]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x10155056
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
test ebx, ebx
je 0x10155093
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10155085
mov ecx, eax
call fcn.10120260
jmp 0x10155087
xor eax, eax
push eax
lea ecx, [ebp - 0x44c]
call fcn.10032660
or esi, 0xffffffff
test edi, edi
jne 0x101553a8
xor ebx, ebx
mov dword [ebp - 0x424], 1
lea ebx, [ebx]
mov edi, dword [ebp - 0x430]
mov dword [ebp - 0x41c], 0x104
mov dword [ebp - 0x420], 0x104
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101550e0
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3f
call fcn.10003680
add esp, 4
test eax, eax
je 0x10155119
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x424]
push ecx
push 0
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x414]
push ecx
push ebx
push edi
call eax
jmp 0x10155146
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test esi, esi
je 0x10155153
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1015539a
mov eax, dword [ebp - 0x41c]
inc ebx
cmp eax, 0x104
jae 0x101550b0
add eax, eax
cmp eax, 0x208
jae 0x101553e5
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
mov eax, dword [ebp - 0x420]
cmp eax, 0x104
jae 0x101550b0
add eax, eax
cmp eax, 0x208
jae 0x101553e5
cmp dword [ebp - 0x424], 1
mov word [ebp + eax - 0x20c], cx
jne 0x101550b0
push 5
lea eax, [ebp - 0x20c]
push str.rem
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x101550b0
push 0x650
call sub.msvcrt.dll_malloc
mov edi, eax
add esp, 4
mov dword [ebp - 0x444], edi
test edi, edi
je 0x1015539a
push 0x650
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0x43c], 0
je 0x1015521f
cmp dword [ebp + 0x10], 0
mov byte [edi + 0x64c], 1
setne al
mov byte [edi + 0x64d], al
mov eax, dword [ebp - 0x428]
lea ecx, [edi + 8]
mov dword [edi + 4], 8
lea esi, [ebp - 0x414]
mov dword [edi + 0x624], eax
mov edx, 0x104
mov eax, dword [ebp - 0x42c]
sub esi, ecx
mov dword [edi + 0x628], eax
mov edi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10155270
movzx eax, word [esi + ecx]
test ax, ax
je 0x10155270
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10155250
jmp 0x10155274
test edx, edx
jne 0x10155277
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x434]
call fcn.10002490
mov ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.101565c0
mov edx, dword [ebp - 0x434]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101552c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x418]
lea ecx, [edi + 0x210]
mov edx, 0x104
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x101552f8
movzx eax, word [esi]
test ax, ax
je 0x101552f8
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x101552d6
jmp 0x101552fc
test edx, edx
jne 0x101552ff
sub ecx, 2
xor eax, eax
mov word [ecx], ax
push dword [ebp - 0x418]
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x1015536a
push dword [ebp - 0x418]
call fcn.10154e30
mov ecx, dword [ebp - 0x438]
add esp, 4
mov dword [edi + 0x620], eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x440], 8
push eax
lea ecx, [ecx + 4]
call fcn.101547d0
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ecx
je 0x10155359
mov dword [ecx], edi
add dword [eax + 4], 4
jmp 0x10155373
lea edx, [ebp - 0x444]
push edx
push ecx
mov ecx, eax
call fcn.100cc490
jmp 0x10155373
push edi
call sub.msvcrt.dll_free
add esp, 4
mov edx, dword [ebp - 0x418]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101550b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x101550b0
push dword [ebp - 0x430]
call fcn.10034ac0
or esi, 0xffffffff
mov ebx, dword [ebp - 0x448]
test ebx, ebx
je 0x101553d0
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x101553d0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x101553d0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
call fcn.101c8260
int3