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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x10007014]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
xor edi, edi
mov eax, 0x80000000
push 0x1000175c
mov esi, edx
mov dword [esp + 0x14], edi
mov ebx, ecx
mov dword [esp + 0x44], esi
push 0x47
pop edx
lea ecx, [esp + 0x9c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
call fcn.10002860
test eax, eax
js 0x10003953
push 0x27
lea eax, [esp + 0xb0]
push eax
push ebx
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
test eax, eax
js 0x10003953
push 0x10001798
push 0x47
pop edx
lea ecx, [esp + 0x9c]
call fcn.10002895
test eax, eax
js 0x10003953
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x1ff
push eax
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0xa0]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x10003717
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
test eax, eax
jne 0x10003717
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.10003616
test eax, eax
je 0x10003953
push 0x100017ac
xor eax, eax
lea ecx, [esp + 0x9c]
push 0x47
pop edx
mov word [esp + 0x10], ax
mov word [esp + 0x24], ax
call fcn.10002860
test eax, eax
js 0x10003953
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0xb8]
mov ecx, ebx
call fcn.1000343b
test eax, eax
js 0x10003953
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
lea eax, [esp + 0xa4]
push eax
push 0x80000000
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x10003791
mov eax, 0x8002801d
jmp 0x10003953
xor eax, eax
mov ebx, edi
push 0xd
mov word [esp + 0x80], ax
lea eax, [esp + 0x64]
push eax
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10003854
mov ax, word [esp + 0xc]
mov si, word [esp + 0x20]
mov word [esp + 0xc], ax
push 0x10
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
movzx edi, ax
add esp, 0xc
mov eax, dword [esp + 0x44]
cmp word [eax], 0x2e
jne 0x10003837
push 0x10
add eax, 2
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx eax, ax
cmp dword [esp + 0x3c], 0
jne 0x10003808
cmp di, si
ja 0x10003814
cmp di, si
jne 0x10003837
cmp ax, word [esp + 0xc]
jb 0x10003837
mov word [esp + 0xc], ax
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x60]
mov si, di
push eax
push 0xd
pop edx
call fcn.10002860
mov edi, eax
test edi, edi
js 0x100038b8
push 0xd
lea eax, [esp + 0x64]
inc ebx
push eax
push ebx
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x100037c6
xor edi, edi
lea eax, [esp + 0x18]
mov ebx, 0x20019
push eax
push ebx
push edi
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100038b3
push 0x10
lea eax, [esp + 0x9c]
mov esi, edi
push eax
push edi
jmp 0x100038a5
lea ecx, [esp + 0x98]
call fcn.100035a7
test eax, eax
jne 0x10003968
push 0x10
lea eax, [esp + 0x9c]
inc esi
push eax
push esi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x10003885
mov edi, 0x8002801d
mov edx, dword [esp + 0x24]
test edx, edx
je 0x100038d5
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x4c]
mov ecx, esi
call dword [0x1000a1a0]
call esi
cmp dword [esp + 0x30], 0
je 0x100038f4
mov eax, dword [esp + 0x2c]
push dword [esp + 0x30]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x4c]
mov ecx, esi
call dword [0x1000a1a0]
call esi
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x1000390c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1000a1a0]
call esi
mov ebx, 0x80000000
cmp dword [esp + 0x28], ebx
je 0x10003921
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x14], ebx
je 0x10003931
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
je 0x10003941
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x1c], ebx
je 0x10003951
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10005ed0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
push ebx
push edi
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100038b3
lea eax, [esp + 0x28]
push eax
push ebx
push edi
push 0x100017c0
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x100039e1
push 6
lea eax, [esp + 0x9c]
push eax
push edi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x100038b3
lea eax, [esp + 0x28]
push eax
push ebx
push edi
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x100038b3
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x200
push eax
lea eax, [esp + 0x12c]
push eax
push edi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x100038b3
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov edi, eax
test edi, edi
js 0x100038b8
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x4c]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x18]
call dword [0x1000a1a0]
call dword [esi + 0x18]
mov edi, eax
test edi, edi
js 0x100038b8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1000a1a0]
call esi
mov edi, eax
test edi, edi
js 0x100038b8
mov edx, dword [esp + 0x24]
test byte [edx + 0x36], 0x40
je 0x10003b44
cmp dword [edx + 0x28], 4
jne 0x10003b44
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push ecx
push 0xffffffffffffffff
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x20]
call dword [0x1000a1a0]
call dword [esi + 0x20]
mov edi, eax
test edi, edi
js 0x100038b8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push dword [esp + 0x50]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x38]
call dword [0x1000a1a0]
call dword [esi + 0x38]
mov edi, eax
test edi, edi
js 0x100038b8
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1000a1a0]
call esi
mov edi, eax
test edi, edi
js 0x100038b8
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x28], 3
je 0x10003b08
mov edi, 0x8000ffff
jmp 0x100038b8
mov eax, dword [esp + 0x10]
push dword [esp + 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x4c]
mov ecx, esi
call dword [0x1000a1a0]
call esi
mov eax, dword [esp + 0x10]
and dword [esp + 0x24], 0
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1000a1a0]
call esi
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x2c]
jmp 0x10003b48
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
xor edi, edi
mov dword [ecx], eax
jmp 0x100038b8