Function at 0x42c890
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45a458
push eax
mov eax, 0x21b8
mov dword fs:[0], esp
call fcn.00457870
push ebx
push ebp
mov ebp, dword [esp + 0x21d4]
push esi
mov esi, dword [esp + 0x21d4]
xor ebx, ebx
mov dword [esp + 0x54], ecx
push edi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov eax, dword [ebp]
mov dword [esp + 0x10], ebx
cmp dword [eax - 8], ebx
je 0x42d270
mov edi, dword [esp + 0x21e0]
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x42d270
mov ecx, dword [esp + 0x21e8]
mov edx, dword [ecx]
cmp dword [edx - 8], ebx
je 0x42d270
mov ecx, dword [esp + 0x21ec]
mov edx, dword [ecx]
cmp dword [edx - 8], ebx
je 0x42d270
mov cl, byte [esp + 0x4f]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 0x5c
push eax
mov dword [esp + 0x21d8], ebx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x42c950
sub eax, dword [edi]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c955
mov esi, dword [esp + 0x21d8]
mov esi, dword [esi + 0xc]
jmp 0x42c9cb
mov edx, dword [esp + 0x21f0]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x468dac
call fcn.0042a190
push ecx
mov ecx, edi
mov eax, esp
mov dword [esp + 0x5c], esp
push esi
push eax
mov byte [esp + 0x21e4], 1
call fcn.00419850
mov ecx, ebp
mov byte [esp + 0x21dc], 0
call fcn.00405940
push eax
lea ecx, [esp + 0x44]
call fcn.00429a00
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x21d0], 2
cmp ecx, ebx
jne 0x42c9fd
mov ecx, dword [esp + 0x21d8]
mov esi, dword [ecx + 0xc]
lea ecx, [esp + 0x3c]
call fcn.00401c80
lea ecx, [esp + 0x38]
call fcn.00401c80
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x21d8], 0xffffffff
call fcn.0042fb10
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0044bf22
add esp, 4
mov eax, esi
jmp 0x42d272
mov edx, dword [esp + 0x21d8]
mov eax, dword [esp + 0x3c]
mov esi, 1
mov dword [esp + 0x18], ebx
mov dword [edx + 0xc], esi
mov eax, dword [eax - 8]
cmp eax, ebx
jne 0x42cae7
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x18]
or al, 8
push edx
mov edx, dword [esp + 0x3c]
push eax
push ebx
push edx
push ecx
mov dword [esp + 0x24], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42cc2b
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x1d8]
push eax
push ecx
push ebx
push edx
xor esi, esi
call ebp
test eax, eax
jne 0x42cad7
mov bl, 3
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x14]
push eax
call fcn.004171e0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x21d8], bl
call fcn.0042f980
lea ecx, [esp + 0x14]
mov byte [esp + 0x21d0], 2
call fcn.00401c80
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x1d8]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x1000
call ebp
test eax, eax
je 0x42ca6f
xor ebx, ebx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42cc2b
mov edx, dword [esp + 0x38]
cmp dword [edx - 8], ebx
je 0x42cb2e
lea eax, [esp + 0x38]
push 0x463650
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0042c6f0
mov dword [esp + 0x10], esi
lea edx, [esp + 0x3c]
mov byte [esp + 0x21d0], 4
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0042c550
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], 3
jmp 0x42cb32
lea eax, [esp + 0x3c]
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x44]
or edx, esi
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov al, byte [esp + 0x10]
sete bl
test al, 2
je 0x42cb69
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
and al, 0xfd
mov dword [esp + 0x10], eax
call fcn.00401c80
mov al, byte [esp + 0x10]
mov dword [esp + 0x21d0], 2
test al, 1
je 0x42cb85
lea ecx, [esp + 0x14]
call fcn.00401c80
test bl, bl
je 0x42cc29
mov edx, dword [esp + 0x18]
xor esi, esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x1d8]
push eax
push ecx
mov ebx, 0x1000
push esi
push edx
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
jne 0x42cc1e
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x14]
push eax
call fcn.004171e0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x21d8], 5
call fcn.0042f980
lea ecx, [esp + 0x14]
mov byte [esp + 0x21d0], 2
call fcn.00401c80
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x1d8]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x30], ebx
call ebp
test eax, eax
je 0x42cbbb
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42cc41
mov ecx, dword [esp + 0x2c]
sub ecx, eax
test ecx, 0xfffffffc
jne 0x42cc8f
mov edx, dword [esp + 0x21d8]
lea ecx, [esp + 0x3c]
mov esi, dword [edx + 0xc]
call fcn.00401c80
lea ecx, [esp + 0x38]
call fcn.00401c80
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x21d8], 0xffffffff
call fcn.0042fb10
mov edx, dword [esp + 0x28]
push edx
call fcn.0044bf22
add esp, 4
mov eax, esi
jmp 0x42d272
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jl 0x42cca6
mov dword [esp + 0x1c], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42ccba
mov ecx, dword [0x4631a0]
push eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
call fcn.00405430
mov edx, 0x46711c
mov byte [esp + 0x21d0], 6
test edx, edx
je 0x42ceae
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call esi
mov ebp, eax
cmp ebp, ebx
je 0x42ceae
mov eax, 0x467114
test eax, eax
jne 0x42ccf1
mov dword [esp + 0x10], ebx
jmp 0x42ccfc
push 0x467114
call esi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x14], eax
jae 0x42cea7
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x46711c
push esi
call ebx
add esp, 8
test eax, eax
je 0x42cd3c
lea esi, [eax + ebp*2]
push 0x46711c
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x42cd29
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x42cd14
test edi, edi
jle 0x42cea7
lea ecx, [esp + 0x1c]
call fcn.00408830
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
sub ebx, ebp
imul ebx, edi
mov ecx, dword [eax - 8]
mov dword [esp + 0x18], ecx
add ebx, ecx
mov ecx, dword [eax - 4]
mov dword [esp + 0x44], ebx
cmp ecx, ebx
jl 0x42cd87
cmp dword [eax - 0xc], 1
jle 0x42cdc1
push ebx
lea ecx, [esp + 0x20]
lea esi, [eax - 0xc]
mov edi, eax
call fcn.00404720
test eax, eax
je 0x42cea7
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
shl edx, 1
push edx
lea eax, [ebx + ebx + 2]
push edi
push eax
push ecx
call fcn.00401bc0
add esp, 0x10
push esi
call fcn.00405ba0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax - 8]
mov edi, eax
lea ecx, [eax + edx*2]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jae 0x42cea4
push 0x46711c
push edi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x42ce89
mov eax, dword [esp + 0x10]
mov ecx, eax
neg ecx
shl ecx, 0x1f
sub ecx, eax
inc ecx
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, dword [edx - 4]
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
sub edi, eax
sub ecx, ebp
lea eax, [edx + edx]
mov edx, dword [esp + 0x20]
add eax, esi
lea ebx, [ecx + ecx]
add edx, edi
lea ecx, [esi + ebp*2]
push ebx
shl edx, 1
push ecx
push edx
push eax
mov dword [esp + 0x58], eax
call fcn.00409c60
mov eax, dword [esp + 0x20]
lea ecx, [edi + edi + 2]
add eax, eax
push eax
push 0x467114
push ecx
push esi
call fcn.00401bc0
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x30]
sub edx, ebp
push 0x46711c
mov word [ebx + edi], 0
mov ebx, dword [esp + 0x3c]
add ebx, edx
push edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x42ce00
mov ebx, dword [esp + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [esp + 0x14]
cmp edi, eax
jb 0x42cdd5
mov eax, dword [esp + 0x1c]
mov dword [eax - 8], ebx
mov edi, dword [esp + 0x21e0]
push 0x46710c
push 0x467104
lea ecx, [esp + 0x24]
call fcn.00423730
push 0x4670fc
push 0x463650
lea ecx, [esp + 0x24]
call fcn.00423730
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x9c]
call fcn.004337b0
push esi
lea ecx, [esp + 0x84]
mov byte [esp + 0x21d4], 7
call fcn.00433720
mov eax, dword [eax + 8]
push 8
push eax
push esi
lea ecx, [esp + 0xa8]
mov byte [esp + 0x21dc], 8
call fcn.004338f0
mov dword [esp + 0x80], 0x45ca18
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, eax
cmp eax, ecx
mov byte [esp + 0x21d0], 9
mov dword [esp + 0x20], esi
je 0x42d228
mov ebp, dword [esp + 0x21f4]
mov bl, 0xd
lea eax, [esp + 0x38]
push 0x463650
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042c6f0
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x21dc], 0xa
call fcn.0042c550
mov eax, dword [esp + 0x18]
mov edx, dword [0x4631a4]
mov byte [esp + 0x21d0], 0xc
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42cfa5
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42cfa5
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0044bf22
add esp, 4
mov eax, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x70]
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.004329f0
push 0
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0x21d8], bl
call fcn.00433700
test eax, eax
jne 0x42cffc
lea ecx, [esp + 0x6c]
mov byte [esp + 0x21d0], 0xc
call fcn.00432600
lea ecx, [esp + 0x10]
mov byte [esp + 0x21d0], 9
call fcn.00401c80
jmp 0x42d215
lea edx, [esp + 0x44]
lea eax, [esp + 0x1c8]
push edx
mov edx, dword [esp + 0x21f4]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x21ec]
push ecx
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
mov dword [esp + 0x5c], 0x1000
call fcn.0040c550
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
mov byte [esp + 0x21ec], 0xe
call fcn.0040c550
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0xa4]
push eax
mov byte [esp + 0x21ec], bl
call fcn.00421240
push eax
call fcn.00429560
add esp, 0x10
lea ecx, [esp + 0x8c]
mov esi, eax
call fcn.00429720
test esi, esi
je 0x42d1ef
mov eax, dword [esp + 0x48]
cmp eax, 1
je 0x42d14c
cmp eax, 2
je 0x42d14c
cmp eax, 4
jne 0x42d1ef
push 0x8e
lea ecx, [esp + 0x60]
call fcn.004171e0
mov ecx, dword [esp + 0x1c8]
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0x21e4]
push ecx
mov byte [esp + 0x21dc], 0x11
mov ecx, dword [edx]
lea edx, [esp + 0x6c]
push ecx
push eax
push edx
call fcn.00421b40
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x21d4], 0x12
call fcn.00409d60
lea ecx, [esp + 0x60]
call fcn.00401c80
lea ecx, [esp + 0x5c]
mov byte [esp + 0x21d0], bl
call fcn.00401c80
mov eax, dword [esp + 0x21ec]
mov edx, dword [esp + 0x21e8]
lea ecx, [esp + 0x14]
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [esp + 0x64]
add esp, 4
push eax
mov eax, dword [esp + 0x1d4]
push eax
call fcn.0042dd40
test eax, eax
je 0x42d1ef
jmp 0x42d1e1
push 0x8d
lea ecx, [esp + 0x58]
call fcn.004171e0
mov edx, dword [esp + 0x10]
mov eax, dword [eax]
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x21d0], 0xf
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0x21e4]
push ecx
mov ecx, dword [edx]
lea edx, [esp + 0x5c]
push ecx
push eax
push edx
call fcn.00421b40
add esp, 0x18
push eax
mov ecx, ebp
mov byte [esp + 0x21d4], 0x10
call fcn.00409d60
lea ecx, [esp + 0x50]
call fcn.00401c80
lea ecx, [esp + 0x54]
mov byte [esp + 0x21d0], bl
call fcn.00401c80
mov eax, dword [esp + 0x21ec]
mov edx, dword [esp + 0x21e8]
lea ecx, [esp + 0x14]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
lea eax, [esp + 0x1d4]
push eax
call fcn.0042de70
test eax, eax
je 0x42d1ef
mov edx, dword [esp + 0x21d8]
mov ecx, dword [esp + 0x14]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x21d0], 0xc
call fcn.00432600
lea ecx, [esp + 0x10]
mov byte [esp + 0x21d0], 9
call fcn.00401c80
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add esi, 4
cmp esi, eax
mov dword [esp + 0x20], esi
jne 0x42cf46
mov eax, dword [esp + 0x21d8]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x21d0], 6
mov esi, dword [eax + 0xc]
call fcn.00432730
lea ecx, [esp + 0x1c]
call fcn.00401c80
lea ecx, [esp + 0x34]
call fcn.00429720
lea ecx, [esp + 0x24]
mov dword [esp + 0x21d0], 0xffffffff
call fcn.0040e640
mov eax, esi
jmp 0x42d272
xor eax, eax
mov ecx, dword [esp + 0x21c8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x21c4
ret 0x20