Function at 0x10037e2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
jne 0x1003a18
inc dword [ebp - 0x10]
push ebx
push 2
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_calloc]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
jne 0x100382e
push 8
pop eax
jmp 0x1003a17
push dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x10014e8
push eax
call fcn.010022e2
add esp, 0xc
mov dword [ebp - 8], edi
push esi
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, edi
jne 0x1003898
push ebx
push dword [ebp + 8]
call fcn.01003623
mov esi, eax
cmp esi, 5
jne 0x1003898
push dword [ebp + 0xc]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push 0x1001638
push eax
call fcn.010022e2
add esp, 0x10
xor esi, esi
inc dword [ebp - 8]
cmp esi, edi
je 0x100384b
push ebx
call dword [sym.imp.msvcrt.dll_free]
cmp esi, 0x103
pop ecx
jne 0x10038b1
xor esi, esi
cmp esi, edi
je 0x10038bc
mov eax, esi
jmp 0x1003a16
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x10038ca
mov eax, 0x100
jmp 0x10038d3
cmp eax, 0x100
jae 0x10038d3
add eax, eax
inc eax
push 2
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x10038f1
push 8
pop eax
jmp 0x1003a16
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x14]
push edi
push edi
push edi
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x10039fd
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 2
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call ebx
push dword [ebp + 0xc]
mov esi, eax
call ebx
pop ecx
pop ecx
lea eax, [esi + eax + 2]
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x10039f6
push dword [ebp + 0xc]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x100125c
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x18
cmp dword [ebp + 0x10], edi
je 0x10039a0
cmp dword [ebp - 4], edi
jne 0x10039a0
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x1c]
call fcn.010037e2
mov dword [ebp - 4], eax
jmp 0x10039d7
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
add eax, 0x20
push 0x10014e8
push eax
call fcn.010022e2
add esp, 0xc
cmp dword [ebp - 4], 5
jne 0x10039d7
mov eax, dword [sym.imp.msvcrt.dll__iob]
push esi
add eax, 0x40
push 0x10015e0
push eax
call fcn.010022e2
add esp, 0xc
mov dword [ebp - 4], edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.msvcrt.dll_free]
inc dword [ebp - 8]
cmp dword [ebp - 4], edi
pop ecx
je 0x10038fa
jmp 0x10039fd
mov dword [ebp - 4], 8
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 4], 0x103
pop ecx
jne 0x1003a13
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret 0xc