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

Disassembly:
push 0xffffffffffffffff
push 0x4205c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
mov eax, 0x80000005
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov dword [esp + 0x80], eax
mov dword [esp + 0xa8], eax
push edi
mov esi, 0x80000001
mov eax, str.HKCR_
mov edi, 0x80000000
mov edx, 0x80000002
mov ecx, 0x80000003
xor ebx, ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x94], esi
test eax, eax
mov dword [esp + 0x60], str.HKCR_
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], str.HKCU_
mov dword [esp + 0x70], str.HKLM_
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], str.HKU_
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], str.HKCC_
mov dword [esp + 0x88], str.HKEY_CLASSES_ROOT_
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], str.HKEY_CURRENT_USER_
mov dword [esp + 0x98], str.HKEY_LOCAL_MACHINE_
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], str.HKEY_USERS_
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], str.HKEY_CURRENT_CONFIG_
mov dword [esp + 0xb0], ebx
mov dword [esp + 0x4c], ebx
lea esi, [esp + 0x60]
je 0x40ce0d
mov edx, eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
push edi
push ebp
push edx
call fcn.00414330
add esp, 0xc
test eax, eax
je 0x40ce02
mov edx, dword [esi + 8]
add esi, 8
xor ebx, ebx
cmp edx, ebx
jne 0x40cdd7
jmp 0x40ce0d
mov ecx, dword [esi + 4]
add ebp, edi
mov dword [esp + 0x4c], ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x28]
call fcn.004026d0
mov esi, 0x421208
mov dword [esp + 0x20], esi
mov al, byte [0x4290b8]
mov dword [esp + 0xcc], ebx
test al, 1
jne 0x40ce59
or al, 1
push 0xffffffffffffffff
push ebx
mov ecx, 0x4290e8
mov byte [0x4290b8], al
call fcn.004026d0
push 0x40d440
mov dword [0x4290e8], esi
call fcn.00412cb0
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor esi, esi
cmp eax, ebx
jle 0x40ce76
cmp byte [ecx + esi], 0x7c
je 0x40cf26
inc esi
cmp esi, eax
jl 0x40ce67
or esi, 0xffffffff
mov dword [esp + 0x44], ebx
mov ebp, ebx
cmp esi, ebx
jl 0x40cea1
lea eax, [esi + 1]
lea ecx, [esp + 0x20]
push eax
call fcn.00402580
mov ecx, dword [esp + 0x24]
mov eax, esi
mov byte [ecx + esi], bl
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
cmp dword [esp + 0x4c], ebx
jne 0x40cf4f
cmp ebp, ebx
je 0x40cf0b
mov edx, dword [0x4290e8]
push ebx
mov ecx, 0x4290e8
call dword [edx + 4]
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x3c]
call fcn.00402800
lea eax, [esp + 0x34]
mov ecx, 0x4290e8
push eax
mov byte [esp + 0xd0], 1
call fcn.004025d0
mov ecx, dword [0x4290f0]
mov edx, dword [0x4290e8]
push ecx
mov ecx, 0x4290e8
mov byte [esp + 0xd0], bl
mov dword [esp + 0x38], 0x421224
call dword [edx + 4]
mov ebx, dword [0x4290ec]
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 0xffffffff
call fcn.0040d840
mov eax, ebx
jmp 0x40d3d2
cmp esi, ebx
jl 0x40ce79
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ebp, [ecx + esi + 1]
mov dword [esp + 0x44], ebp
jmp 0x40ce7f
lea esi, [eax - 1]
cmp esi, ebx
jl 0x40cf63
cmp byte [ecx + esi], 0x5c
je 0x40d039
dec esi
jns 0x40cf56
or esi, 0xffffffff
mov edi, 0x428f90
cmp esi, ebx
jl 0x40cf89
lea edx, [esi + 1]
lea ecx, [esp + 0x20]
push edx
call fcn.00402580
mov eax, dword [esp + 0x24]
mov byte [eax + esi], bl
mov eax, esi
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x30]
push eax
push 0x20019
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40d05e
cmp ebp, ebx
je 0x40d016
mov eax, dword [0x4290e8]
push ebx
mov ecx, 0x4290e8
call dword [eax + 4]
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x3c]
call fcn.00402800
lea ecx, [esp + 0x34]
mov byte [esp + 0xcc], 2
push ecx
mov ecx, 0x4290e8
call fcn.004025d0
mov edx, dword [0x4290f0]
mov eax, dword [0x4290e8]
push edx
mov ecx, 0x4290e8
mov byte [esp + 0xd0], bl
mov dword [esp + 0x38], 0x421224
call dword [eax + 4]
mov ebx, dword [0x4290ec]
mov dword [esp + 0x20], 0x4211f8
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 3
call fcn.00407c80
mov eax, ebx
jmp 0x40d3d2
cmp esi, ebx
jl 0x40cf66
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea edi, [ecx + esi + 1]
jmp 0x40cf6b
mov eax, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x40]
push ecx
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
call ebp
cmp eax, ebx
jne 0x40d334
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push ebx
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0xd4], 4
mov dword [esp + 0x18], 0x4211f8
mov dword [esp + 0x24], ebx
call fcn.00402630
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push esi
mov byte [esp + 0xd0], 5
call fcn.00402580
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], esi
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x44]
push ecx
push edx
push ebx
push edi
push eax
call ebp
cmp eax, ebx
jne 0x40d307
push 1
mov ecx, 0x4290e8
call fcn.00402580
mov ecx, dword [0x4290ec]
mov ebp, 0x421224
mov byte [ecx], bl
mov edx, dword [esp + 0x40]
mov dword [0x4290f0], ebx
lea eax, [edx - 1]
cmp eax, 4
ja case.0x40d124.3
jmp dword [eax*4 + 0x40d3f0]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
call dword [edx + 4]
mov eax, dword [0x4290e8]
mov esi, dword [esp + 0x14]
push ebx
mov ecx, 0x4290e8
call dword [eax + 4]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x3c]
call fcn.00402800
lea ecx, [esp + 0x34]
mov byte [esp + 0xcc], 6
push ecx
mov ecx, 0x4290e8
call fcn.004025d0
mov byte [esp + 0xcc], 5
jmp case.0x40d124.3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x58]
call fcn.004026d0
mov dword [esp + 0x50], 0x421208
lea edx, [esp + 0x50]
push ebx
lea eax, [esp + 0xb8]
push edx
push eax
mov byte [esp + 0xd8], 7
call fcn.00408a20
add esp, 0xc
mov esi, eax
mov edx, dword [0x4290e8]
push ebx
mov ecx, 0x4290e8
mov byte [esp + 0xd0], 8
call dword [edx + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push esi
mov ecx, 0x4290e8
call fcn.00402630
mov esi, 0x4211f8
mov dword [esp + 0xb4], esi
lea ecx, [esp + 0xb4]
mov byte [esp + 0xcc], 9
call fcn.00407c80
mov dword [esp + 0xb4], ebp
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x50]
mov byte [esp + 0xcc], 0xa
call fcn.00407c80
mov byte [esp + 0xcc], 5
jmp case.0x40d124.3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call dword [edx + 4]
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
push eax
call fcn.0040d410
add esp, 4
mov dword [edi], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x14]
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ecx
push 0x4252ac
push 0x4290e8
call fcn.00405970
add esp, 0xc
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4290f0]
mov edx, dword [0x4290e8]
push eax
mov ecx, 0x4290e8
call dword [edx + 4]
mov esi, dword [0x4290ec]
mov edi, 0x4211f8
mov dword [esp + 0x10], edi
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 0xb
call fcn.00410df0
cmp eax, ebx
je 0x40d2de
push eax
call fcn.004120fe
add esp, 4
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], 0xc
call fcn.00410df0
cmp eax, ebx
je 0x40d3d0
jmp 0x40d3c7
mov dword [esp + 0x10], 0x4211f8
lea ecx, [esp + 0x10]
mov byte [esp + 0xcc], 0xd
call fcn.00410df0
cmp eax, ebx
je 0x40d32d
push eax
call fcn.004120fe
add esp, 4
mov byte [esp + 0xcc], bl
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x44]
cmp esi, ebx
je 0x40d3a9
mov edx, dword [0x4290e8]
push ebx
mov ecx, 0x4290e8
call dword [edx + 4]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x3c]
call fcn.00402800
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, 0x4290e8
mov byte [esp + 0xd4], 0xe
call fcn.00402630
mov edx, dword [0x4290f0]
mov eax, dword [0x4290e8]
push edx
mov ecx, 0x4290e8
mov byte [esp + 0xd0], bl
mov dword [esp + 0x38], 0x421224
call dword [eax + 4]
mov esi, dword [0x4290ec]
jmp 0x40d3ab
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0x4211f8
cmp eax, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x40d3d0
push eax
call fcn.004120fe
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 4