Function at 0x100035fb
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.10002890
test eax, eax
js 0x10003938
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 0x10003938
push 0x10001798
push 0x47
pop edx
lea ecx, [esp + 0x9c]
call fcn.100028c5
test eax, eax
js 0x10003938
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 0x100036fc
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 0x100036fc
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.100035fb
test eax, eax
je 0x10003938
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.10002890
test eax, eax
js 0x10003938
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.10003424
test eax, eax
js 0x10003938
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 0x10003776
mov eax, 0x8002801d
jmp 0x10003938
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 0x10003839
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 0x1000381c
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 0x100037ed
cmp di, si
ja 0x100037f9
cmp di, si
jne 0x1000381c
cmp ax, word [esp + 0xc]
jb 0x1000381c
mov word [esp + 0xc], ax
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x60]
mov si, di
push eax
push 0xd
pop edx
call fcn.10002890
mov edi, eax
test edi, edi
js 0x1000389d
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 0x100037ab
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 0x10003898
push 0x10
lea eax, [esp + 0x9c]
mov esi, edi
push eax
push edi
jmp 0x1000388a
lea ecx, [esp + 0x98]
call fcn.1000358e
test eax, eax
jne 0x1000394d
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 0x1000386a
mov edi, 0x8002801d
mov edx, dword [esp + 0x24]
test edx, edx
je 0x100038ba
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 0x100038d9
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 0x100038f1
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 0x10003906
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x14], ebx
je 0x10003916
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
je 0x10003926
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x1c], ebx
je 0x10003936
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.10005e20
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 0x10003898
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 0x100039c6
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 0x10003898
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 0x10003898
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 0x10003898
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 0x1000389d
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 0x1000389d
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 0x1000389d
mov edx, dword [esp + 0x24]
test byte [edx + 0x36], 0x40
je 0x10003b29
cmp dword [edx + 0x28], 4
jne 0x10003b29
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 0x1000389d
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 0x1000389d
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 0x1000389d
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x28], 3
je 0x10003aed
mov edi, 0x8000ffff
jmp 0x1000389d
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 0x10003b2d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
xor edi, edi
mov dword [ecx], eax
jmp 0x1000389d