Function at 0x402da0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x447ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x45c5d0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5d0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, ecx
push 0x44ecdb
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
call fcn.00401fd0
xor ebx, ebx
push 0x44ecdb
lea ecx, [esp + 0x20]
mov dword [esp + 0x164], ebx
call fcn.00401fd0
mov byte [esp + 0x160], 1
cmp dword [edi], ebx
jne 0x402e6b
mov byte [esp + 0x160], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403314
xor esi, esi
cmp dword [esp + 0x168], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], esi
jle 0x4032bd
add edi, 0x210
jmp 0x402ea4
mov esi, dword [esp + 0x2c]
mov eax, dword [edi - 0x210]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x402eba
push 0x12
push str.HKEY_LOCAL_MACHINE
jmp 0x402ed8
cmp eax, 0x80000000
jne 0x402eca
push 0x11
push str.HKEY_CLASSES_ROOT
jmp 0x402ed8
cmp eax, 0x80000001
jne 0x402ee1
push 0x11
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x24]
call fcn.00402440
mov eax, dword [edi - 0x210]
lea ecx, [esp + 0x24]
push ecx
push 1
lea ebp, [edi - 0x108]
push 0
lea edx, [ebp - 0x104]
push edx
push eax
mov dword [esp + 0x44], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031bb
cmp dword [ebp], 4
jne 0x402f22
mov dword [esp + 0x30], 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
push edi
push ebp
push 0
lea edx, [ebp + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40321f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f47
sub eax, edx
mov esi, eax
cmp byte [edi + esi - 1], 0x22
jne 0x402f5e
mov byte [edi + esi - 1], cl
dec esi
cmp byte [edi], 0x22
jne 0x402f7c
lea ecx, [esi - 1]
push ecx
add ebp, 0x109
push ebp
push edi
call fcn.00437370
add esp, 0xc
dec esi
mov byte [edi + esi], 0
push edi
lea ecx, [esp + 0x1c]
call fcn.00401fd0
mov byte [esp + 0x160], 2
mov edx, dword [esp + 0x18]
push 0x5c
push edx
call fcn.00432746
add esp, 8
test eax, eax
jne 0x402fa6
or eax, 0xffffffff
jmp 0x402faa
sub eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call fcn.00401b30
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 3
call fcn.004021d0
mov byte [esp + 0x160], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ff3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x16c]
test eax, eax
jne 0x403037
lea ecx, [ebx + str.iSecurityGNB.ocx]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004049a0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 4
call fcn.004021d0
mov byte [esp + 0x160], 2
mov eax, dword [esp + 0x3c]
jmp 0x4030b1
cmp eax, 1
jne 0x403075
lea ecx, [ebx + str.iesignGNB.ocx]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.004049a0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 5
call fcn.004021d0
mov byte [esp + 0x160], 2
mov eax, dword [esp + 0x48]
jmp 0x4030b1
cmp eax, 2
jne 0x4030cf
lea ecx, [ebx + str._npisecurity_gnb.dll]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004049a0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 6
call fcn.004021d0
mov byte [esp + 0x160], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403110
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403110
cmp eax, 3
jne 0x403110
lea ecx, [ebx + str.CryptoKit.CertEnrollment.Pro.x86.dll]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004049a0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 7
call fcn.004021d0
lea ecx, [esp + 0x44]
mov byte [esp + 0x160], 2
call fcn.004025a0
push 0x103
lea ecx, [esp + 0x51]
push 0
push ecx
mov byte [esp + 0x58], 0
call fcn.00434d10
mov eax, dword [esp + 0x24]
mov esi, dword [eax - 0xc]
add esp, 0xc
push esi
push eax
lea edx, [esp + 0x54]
push edx
call fcn.00437370
add esp, 0xc
push esi
lea ecx, [esp + 0x50]
call fcn.00403340
test eax, eax
je 0x403282
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
push 0
push edi
call fcn.00434d10
mov byte [esp + 0x16c], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403194
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
inc eax
add ebx, 0x31c
add edi, 0x41c
cmp eax, dword [esp + 0x168]
mov dword [esp + 0x2c], eax
jl 0x402ea0
jmp 0x4032bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
imul esi, esi, 0x41c
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
lea edx, [esi + ecx + 4]
push edx
push eax
lea ecx, [esp + 0x28]
push 0x44ecf0
push ecx
call fcn.00402110
mov eax, dword [esp + 0x30]
add esp, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00409780
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4032bd
mov eax, dword [esp + 0x38]
imul esi, esi, 0x41c
mov edx, dword [esp + 0x1c]
add eax, esi
lea ecx, [eax + 0x10c]
push ecx
add eax, 4
push eax
push edx
lea eax, [esp + 0x2c]
push 0x44ed04
push eax
call fcn.00402110
mov eax, dword [esp + 0x34]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.004025f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00409780
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4032bd
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x160], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403310
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0043164a
add esp, 0x150
ret 8