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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45a527
push eax
mov eax, 0x2190
mov dword fs:[0], esp
call fcn.00457870
push ebx
push ebp
mov ebp, dword [esp + 0x21ac]
push esi
mov esi, dword [esp + 0x21ac]
push edi
xor edi, edi
xor ebx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov eax, dword [ebp]
mov dword [esp + 0x1c], ebx
cmp dword [eax - 8], edi
je 0x42dadf
mov ecx, dword [esp + 0x21b8]
mov eax, dword [ecx]
cmp dword [eax - 8], edi
je 0x42dadf
mov dl, byte [esp + 0x23]
mov dword [esp + 0x2c], edi
mov byte [esp + 0x28], dl
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
push 0x5c
push eax
mov dword [esp + 0x21b0], edi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, edi
je 0x42d331
mov ecx, dword [esp + 0x21b8]
sub eax, dword [ecx]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x42d336
mov esi, dword [esp + 0x21b0]
mov esi, dword [esi + 0xc]
jmp 0x42d3b1
mov edx, dword [esp + 0x21bc]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x468dac
call fcn.0042a190
push ecx
mov ecx, dword [esp + 0x21c4]
mov eax, esp
mov dword [esp + 0x44], esp
push esi
push eax
mov byte [esp + 0x21bc], 1
call fcn.00419850
mov ecx, ebp
mov byte [esp + 0x21b4], 0
call fcn.00405940
push eax
lea ecx, [esp + 0x50]
call fcn.00429a00
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x21a8], 2
cmp ecx, edi
jne 0x42d3e3
mov ecx, dword [esp + 0x21b0]
mov esi, dword [ecx + 0xc]
lea ecx, [esp + 0x48]
call fcn.00401c80
lea ecx, [esp + 0x44]
call fcn.00401c80
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x21b0], 0xffffffff
call fcn.0042fb10
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0044bf22
add esp, 4
mov eax, esi
jmp 0x42dae1
mov edx, dword [esp + 0x21b0]
mov eax, dword [esp + 0x48]
mov esi, 1
mov dword [esp + 0x10], edi
mov dword [edx + 0xc], esi
mov eax, dword [eax - 8]
cmp eax, edi
jne 0x42d4bc
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x10]
or al, 8
push edx
mov edx, dword [esp + 0x48]
push eax
push edi
mov ebx, 0x1000
push edx
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42d5f0
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
push edi
push edi
lea eax, [esp + 0x24]
push edi
lea ecx, [esp + 0x1b0]
push eax
push ecx
push edi
push edx
xor esi, esi
call ebp
test eax, eax
jne 0x42d5e5
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x1c]
push eax
call fcn.004171e0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x21b0], 3
call fcn.0042f980
lea ecx, [esp + 0x1c]
mov byte [esp + 0x21a8], 2
call fcn.00401c80
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x24]
push edi
lea ecx, [esp + 0x1b0]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x38], ebx
call ebp
test eax, eax
je 0x42d458
jmp 0x42d5e5
mov edx, dword [esp + 0x44]
cmp dword [edx - 8], edi
je 0x42d500
lea eax, [esp + 0x44]
push 0x463650
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0042c6f0
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x48]
mov byte [esp + 0x21a8], 4
push edx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0042c550
mov ecx, dword [esp + 0x40]
mov ebx, 3
jmp 0x42d504
lea eax, [esp + 0x48]
mov eax, dword [eax]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x50]
or edx, esi
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [esp + 0x23]
test bl, 2
je 0x42d533
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.00401c80
test bl, 1
mov dword [esp + 0x21a8], 2
je 0x42d54c
lea ecx, [esp + 0x24]
call fcn.00401c80
mov al, byte [esp + 0x23]
test al, al
je 0x42d5f0
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push edi
push edi
lea eax, [esp + 0x24]
push edi
lea ecx, [esp + 0x1b0]
push eax
push ecx
mov ebx, 0x1000
push edi
push edx
mov dword [esp + 0x38], ebx
xor esi, esi
call ebp
test eax, eax
jne 0x42d5e5
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x1c]
push eax
call fcn.004171e0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x21b0], 5
call fcn.0042f980
lea ecx, [esp + 0x1c]
mov byte [esp + 0x21a8], 2
call fcn.00401c80
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x24]
push edi
lea ecx, [esp + 0x1b0]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x38], ebx
call ebp
test eax, eax
je 0x42d586
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x42d606
mov ecx, dword [esp + 0x30]
sub ecx, eax
test ecx, 0xfffffffc
jne 0x42d654
mov edx, dword [esp + 0x21b0]
lea ecx, [esp + 0x48]
mov esi, dword [edx + 0xc]
call fcn.00401c80
lea ecx, [esp + 0x44]
call fcn.00401c80
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x21b0], 0xffffffff
call fcn.0042fb10
mov edx, dword [esp + 0x2c]
push edx
call fcn.0044bf22
add esp, 4
mov eax, esi
jmp 0x42dae1
mov eax, dword [esp + 0x21b8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
jl 0x42d672
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42d686
mov ecx, dword [0x4631a0]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00405430
mov edx, 0x46711c
mov byte [esp + 0x21a8], 6
test edx, edx
je 0x42d873
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edx
call esi
mov ebp, eax
cmp ebp, edi
je 0x42d873
mov eax, 0x467114
test eax, eax
jne 0x42d6bd
mov dword [esp + 0x10], edi
jmp 0x42d6c8
push 0x467114
call esi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x1c], eax
jae 0x42d873
mov ebx, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x46711c
push esi
call ebx
add esp, 8
test eax, eax
je 0x42d706
lea esi, [eax + ebp*2]
push 0x46711c
push esi
inc edi
call ebx
add esp, 8
test eax, eax
jne 0x42d6f3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x42d6de
test edi, edi
jle 0x42d871
lea ecx, [esp + 0x14]
call fcn.00408830
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
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 + 0x3c], ebx
cmp ecx, ebx
jl 0x42d751
cmp dword [eax - 0xc], 1
jle 0x42d78b
push ebx
lea ecx, [esp + 0x18]
lea esi, [eax - 0xc]
mov edi, eax
call fcn.00404720
test eax, eax
je 0x42d871
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x14]
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 + 0x14]
mov edx, dword [eax - 8]
mov edi, eax
lea ecx, [eax + edx*2]
cmp eax, ecx
mov dword [esp + 0x1c], ecx
jae 0x42d86e
push 0x46711c
push edi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x42d853
mov eax, dword [esp + 0x10]
mov ecx, eax
neg ecx
shl ecx, 0x1f
sub ecx, eax
inc ecx
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x14]
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 + 0x24]
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 + 0x48], 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 + 0x58]
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 0x42d7ca
mov ebx, dword [esp + 0x3c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jb 0x42d79f
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebx
xor edi, edi
push 0x46710c
push 0x467104
lea ecx, [esp + 0x1c]
call fcn.00423730
push 0x4670fc
push 0x463650
lea ecx, [esp + 0x1c]
call fcn.00423730
mov eax, dword [esp + 0x14]
push 8
push eax
lea ecx, [esp + 0x7c]
call fcn.00432860
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp ebp, eax
mov byte [esp + 0x21a8], 7
je 0x42d9c8
mov bl, 0xb
lea ecx, [esp + 0x44]
push 0x463650
lea edx, [esp + 0x40]
push ecx
push edx
call fcn.0042c6f0
push ebp
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x21b0], 8
push eax
call fcn.0042c550
lea ecx, [esp + 0x3c]
mov byte [esp + 0x21a8], 0xa
call fcn.00401c80
mov ecx, dword [esp + 0x10]
push edi
lea edx, [esp + 0x54]
push ecx
push edx
lea ecx, [esp + 0x80]
call fcn.004329f0
push edi
push edi
lea ecx, [esp + 0x58]
mov byte [esp + 0x21b0], bl
call fcn.00433700
test eax, eax
je 0x42d997
mov eax, dword [esp + 0x21bc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x468dac
call fcn.0042a190
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x21b8], 0xc
call fcn.0040c550
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x70]
push eax
mov byte [esp + 0x21b8], bl
call fcn.00421240
push eax
mov byte [esp + 0x21ac], 0xd
call fcn.0042db00
add esp, 4
lea ecx, [esp + 0x64]
mov esi, eax
mov byte [esp + 0x21a8], bl
call fcn.00429720
cmp esi, edi
jne 0x42da13
lea ecx, [esp + 0x50]
mov byte [esp + 0x21a8], 0xa
call fcn.00432600
lea ecx, [esp + 0x10]
mov byte [esp + 0x21a8], 7
call fcn.00401c80
mov eax, dword [esp + 0x30]
add ebp, 4
cmp ebp, eax
jne 0x42d8c3
mov eax, dword [esp + 0x21b0]
lea ecx, [esp + 0x74]
mov byte [esp + 0x21a8], 6
mov esi, dword [eax + 0xc]
mov dword [eax + 8], edi
call fcn.00432730
lea ecx, [esp + 0x14]
call fcn.00401c80
lea ecx, [esp + 0x40]
call fcn.00429720
lea ecx, [esp + 0x28]
mov dword [esp + 0x21a8], 0xffffffff
call fcn.0040e640
mov eax, esi
jmp 0x42dae1
push 0x8f
lea ecx, [esp + 0x28]
call fcn.004171e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x21b8]
mov eax, dword [eax]
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x21b8]
push ecx
mov byte [esp + 0x21b0], 0xe
mov ecx, dword [edx]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
call fcn.00421b40
add esp, 0x14
mov ecx, dword [esp + 0x21c0]
push eax
mov byte [esp + 0x21ac], 0xf
call fcn.00409d60
lea ecx, [esp + 0x38]
call fcn.00401c80
lea ecx, [esp + 0x24]
call fcn.00401c80
mov eax, dword [esp + 0x21b0]
lea ecx, [esp + 0x50]
mov byte [esp + 0x21a8], 0xa
mov esi, dword [eax + 0xc]
mov dword [eax + 8], 1
call fcn.00432600
lea ecx, [esp + 0x10]
call fcn.00401c80
lea ecx, [esp + 0x74]
mov byte [esp + 0x21a8], 6
call fcn.00432730
lea ecx, [esp + 0x14]
call fcn.00401c80
lea ecx, [esp + 0x40]
call fcn.00429720
lea ecx, [esp + 0x28]
mov dword [esp + 0x21a8], 0xffffffff
call fcn.0040e640
mov eax, esi
jmp 0x42dae1
xor eax, eax
mov ecx, dword [esp + 0x21a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x219c
ret 0x14