Function at 0x1005f79
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100cdf4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x224], eax
xor esi, esi
lea eax, [ebp - 0x21c]
push eax
push 0x80000002
push 0x1001d28
push edi
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebx], esi
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
jl 0x100655f
push 0xf003f
push 0x1001f88
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
call fcn.0100458a
test eax, eax
jne 0x100655f
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x224]
push 0x1001f5c
push dword [eax]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], esi
call fcn.010045c6
test eax, eax
jne 0x1006554
mov eax, dword [ebp - 0x214]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, esi
mov eax, dword [ebp - 0x224]
pop ecx
mov dword [eax], edi
je 0x10060c2
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x224]
push 0x1001f5c
push dword [eax]
lea ecx, [ebp - 0x210]
call fcn.010045c6
test eax, eax
jne 0x100655f
lea ecx, [ebp - 0x210]
call fcn.0100456c
push 0xf003f
push 0x1001ef0
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
call fcn.0100458a
test eax, eax
jne 0x100619a
lea eax, [ebp - 0x214]
push eax
push 0x1001ec8
push esi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], esi
call fcn.010045c6
test eax, eax
jne 0x100618d
mov eax, dword [ebp - 0x214]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 0x218], edi
je 0x1006554
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push eax
push 0x1001ec8
push edi
lea ecx, [ebp - 0x210]
call fcn.010045c6
test eax, eax
lea ecx, [ebp - 0x210]
je 0x1006184
call fcn.0100456c
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x218], esi
mov dword [ebx], esi
jmp 0x10061a2
mov dword [ebx], edi
call fcn.0100456c
jmp 0x100619a
lea ecx, [ebp - 0x210]
call fcn.0100456c
mov dword [ebx], esi
cmp dword [ebx], esi
jne 0x10065a3
push 0xf003f
push 0x1001f88
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
call fcn.0100458a
test eax, eax
jne 0x100628b
lea eax, [ebp - 0x214]
push eax
push 0x1001ea0
push esi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], esi
call fcn.010045c6
test eax, eax
jne 0x100627e
mov eax, dword [ebp - 0x214]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 0x22c], edi
je 0x1006554
mov ecx, dword [ebp - 0x214]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x22c]
lea eax, [ebp - 0x214]
push eax
push 0x1001ea0
push edi
lea ecx, [ebp - 0x210]
call fcn.010045c6
test eax, eax
jne 0x1006262
push 0x1001e9c
push edi
jmp 0x1006252
push 0x1001e9c
push esi
call dword [sym.imp.msvcrt.dll_wcstok]
test eax, eax
pop ecx
pop ecx
jne 0x100624c
mov dword [ebx], edi
jmp 0x100628b
lea ecx, [ebp - 0x210]
call fcn.0100456c
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x22c], esi
mov dword [ebx], esi
jmp 0x100628b
lea ecx, [ebp - 0x210]
mov dword [ebx], esi
call fcn.0100456c
cmp dword [ebx], esi
jne 0x10065a3
push 0xf003f
push 0x1001f88
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
call fcn.0100458a
test eax, eax
jne 0x1006345
lea eax, [ebp - 0x214]
push eax
push 0x1001e8c
push dword [ebp - 0x218]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x214], esi
call fcn.010045c6
test eax, eax
jne 0x1006338
mov eax, dword [ebp - 0x214]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 0x218], edi
lea ecx, [ebp - 0x210]
je 0x100655a
lea eax, [ebp - 0x214]
push eax
push 0x1001e8c
push edi
call fcn.010045c6
test eax, eax
jne 0x100631e
mov dword [ebx], edi
jmp 0x1006345
lea ecx, [ebp - 0x210]
call fcn.0100456c
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [ebp - 0x218], esi
jmp 0x1006343
lea ecx, [ebp - 0x210]
call fcn.0100456c
mov dword [ebx], esi
cmp dword [ebx], esi
jne 0x10065a3
push 0xf003f
push 0x1001e08
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
call fcn.0100458a
test eax, eax
jne 0x10065a3
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0x238], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100655f
mov eax, dword [ebp - 0x220]
mov edi, eax
shl edi, 2
push edi
mov dword [ebp - 0x234], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x230], eax
je 0x100655f
mov ecx, edi
mov edi, dword [ebp - 0x230]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor ebx, ebx
cmp dword [ebp - 0x220], esi
jbe 0x1006538
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
mov dword [ebp - 0x228], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x10064a7
mov eax, dword [ebp - 0x228]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, esi
mov eax, dword [ebp - 0x230]
pop ecx
mov dword [eax + ebx*4], edi
je 0x100655f
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x230]
push dword [eax + ebx*4]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 0x214]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x228]
inc ebx
cmp ebx, dword [ebp - 0x220]
lea eax, [eax + ecx + 1]
mov dword [ebp - 0x214], eax
jb 0x10063fe
cmp dword [ebp - 0x220], esi
jbe 0x1006538
mov eax, dword [ebp - 0x214]
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
mov dword [ebp - 0x218], eax
je 0x100655f
mov ecx, dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor ebx, ebx
cmp dword [ebp - 0x234], esi
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x218]
jbe 0x1006538
mov eax, dword [ebp - 0x230]
lea eax, [eax + ebx*4]
push dword [eax]
mov dword [ebp - 0x224], eax
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 0x224]
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 0x234]
lea edi, [edi + eax*2 + 2]
jb 0x1006502
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x218]
mov dword [eax], ecx
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x214], eax
jmp 0x10065a3
lea ecx, [ebp - 0x210]
call fcn.0100456c
mov edi, dword [ebp - 0x224]
mov eax, dword [edi]
or dword [ebp - 0x214], 0xffffffff
cmp eax, esi
je 0x100657b
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [edi], esi
cmp dword [ebp - 0x218], esi
je 0x100658f
push dword [ebp - 0x218]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x22c], esi
je 0x10065a3
push dword [ebp - 0x22c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x21c], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10065bf
push dword [ebp - 0x21c]
call edi
mov dword [ebp - 0x21c], esi
cmp dword [ebp - 0x238], esi
je 0x10065d5
push dword [ebp - 0x238]
call edi
mov dword [ebp - 0x210], esi
lea eax, [ebp - 0x234]
push eax
call fcn.01005463
mov esi, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
call fcn.0100456c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.01009832
leave
ret 0xc