Function at 0x100035a5
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
push ecx
push 0x1000179c
push ecx
xor edi, edi
mov eax, 0x80000000
mov esi, edx
mov dword [esp + 0x1c], edi
mov ebx, ecx
mov dword [esp + 0x4c], esi
push 0x47
pop edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
call fcn.1000287e
test eax, eax
js 0x100038ee
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 0x100038ee
push 0x100017d8
push 0x47
pop edx
lea ecx, [esp + 0x9c]
call fcn.10002815
test eax, eax
js 0x100038ee
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 0x100036a8
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 0x100036a8
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.100035a5
test eax, eax
je 0x100038ee
push ecx
push 0x100017ec
push ecx
xor eax, eax
lea ecx, [esp + 0xa4]
push 0x47
pop edx
mov word [esp + 0x18], ax
mov word [esp + 0x2c], ax
call fcn.1000287e
test eax, eax
js 0x100038ee
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.100033c0
test eax, eax
js 0x100038ee
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 0x10003724
mov eax, 0x8002801d
jmp 0x100038ee
xor eax, eax
mov esi, 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 0x100037f0
mov ax, word [esp + 0xc]
mov bx, 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 0x100037cf
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 0x1000379b
cmp di, bx
ja 0x100037a7
cmp di, bx
jne 0x100037cf
cmp ax, word [esp + 0xc]
jb 0x100037cf
push ecx
mov word [esp + 0x10], ax
mov bx, di
lea eax, [esp + 0x64]
push eax
push ecx
push 0xd
pop edx
lea ecx, [esp + 0x88]
call fcn.1000287e
mov edi, eax
test edi, edi
js 0x10003853
push 0xd
lea eax, [esp + 0x64]
inc esi
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x10003759
mov ebx, dword [esp + 0x48]
xor edi, edi
lea eax, [esp + 0x18]
push eax
push 0x20019
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 0x1000384e
push 0x10
lea eax, [esp + 0x9c]
mov esi, edi
push eax
push edi
jmp 0x10003840
lea ecx, [esp + 0x98]
call fcn.10003532
test eax, eax
jne 0x10003903
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 0x10003820
mov edi, 0x8002801d
mov edx, dword [esp + 0x24]
test edx, edx
je 0x10003870
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x4c]
mov ecx, esi
call dword [0x1000a18c]
call esi
cmp dword [esp + 0x30], 0
je 0x1000388f
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 [0x1000a18c]
call esi
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x100038a7
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1000a18c]
call esi
mov ebx, 0x80000000
cmp dword [esp + 0x28], ebx
je 0x100038bc
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x14], ebx
je 0x100038cc
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
je 0x100038dc
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x1c], ebx
je 0x100038ec
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.10005bd0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov esi, 0x20019
push eax
push esi
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 0x1000384e
lea eax, [esp + 0x28]
push eax
push esi
push edi
push 0x10001800
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x10003981
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 0x1000384e
lea eax, [esp + 0x28]
push eax
push esi
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 0x1000384e
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 0x1000384e
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 0x10003853
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov esi, dword [eax + 0x18]
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
mov ecx, esi
call dword [0x1000a18c]
call esi
mov edi, eax
test edi, edi
js 0x10003853
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call dword [0x1000a18c]
call esi
mov edi, eax
test edi, edi
js 0x10003853
mov edx, dword [esp + 0x24]
test byte [edx + 0x36], 0x40
je 0x10003ae4
cmp dword [edx + 0x28], 4
jne 0x10003ae4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax + 0x20]
lea eax, [esp + 0x4c]
push eax
push 0xffffffffffffffff
push ecx
mov ecx, esi
call dword [0x1000a18c]
call esi
mov edi, eax
test edi, edi
js 0x10003853
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax + 0x38]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x50]
push ecx
mov ecx, esi
call dword [0x1000a18c]
call esi
mov edi, eax
test edi, edi
js 0x10003853
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call dword [0x1000a18c]
call esi
mov edi, eax
test edi, edi
js 0x10003853
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x28], 3
je 0x10003aa8
mov edi, 0x8000ffff
jmp 0x10003853
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 [0x1000a18c]
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 [0x1000a18c]
call esi
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x2c]
jmp 0x10003ae8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
xor edi, edi
mov dword [ecx], eax
jmp 0x10003853