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

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
sub esp, 0x8ac
lea ebx, [esp + 0xa0]
mov dword [esp + 0x78], 1
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], 0x400
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], edi
call dword [0x4156fc]
sub esp, 0x10
test eax, eax
je 0x40d201
test byte [esp + 0x8c0], 2
jne 0x40d210
test byte [esp + 0x8c0], 0xc
jne 0x40d249
xor eax, eax
add esp, 0x8ac
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [esp + 0x8c0], 1
mov dword [esp + 4], esi
mov dword [esp], ebx
jne 0x40d4b0
call dword [0x415524]
sub esp, 8
test eax, eax
setne al
movzx eax, al
test eax, eax
je 0x40d1f7
mov esi, dword [esp + 0x8c4]
mov dword [esi], 0xffffffff
jmp 0x40d203
lea eax, [esp + 0x60]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call fcn.0040cd00
mov edi, eax
test eax, eax
je 0x40d201
mov eax, dword [esp + 0x60]
test eax, eax
je 0x40d201
lea edx, [esp + 0x5c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
mov dword [esp], edi
test eax, eax
jne 0x40d5a8
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp + 0x44], eax
call eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
mov dword [esp + 0x40], eax
test eax, eax
jne 0x40d201
mov eax, dword [esp + 0x68]
add eax, 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
add eax, eax
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x4c], eax
call eax
mov dword [esp + 0x1c], 0
mov ebp, eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x64]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegEnumValueW]
mov dword [esp + 0x48], eax
call eax
sub esp, 0x20
test eax, eax
jne 0x40d399
xor eax, eax
cmp word [ebp], 0
setne al
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8c4]
mov dword [esp + 0x3c], esi
mov ebx, dword [esp + 0x8c0]
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x48]
mov edi, dword [eax]
mov eax, dword [esp + 0x40]
sub edi, eax
mov eax, 0
cmovs edi, eax
jmp 0x40d3e8
test bl, 8
je 0x40d3e5
mov eax, dword [esp + 0x74]
sub eax, 1
cmp eax, 1
jbe 0x40d4d0
add edi, 1
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 0x20
test eax, eax
jne 0x40d5d8
test bl, 4
je 0x40d3d0
mov eax, dword [esp + 0x3c]
mov dword [esp], ebp
mov dword [esp + 4], eax
test bl, 1
je 0x40d568
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x40d3d0
mov esi, dword [esp + 0x44]
mov dword [esp], ebp
call esi
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call esi
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x40]
add edi, eax
mov eax, dword [esp + 0x8c4]
mov dword [eax], edi
mov eax, 1
jmp 0x40d203
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x40d236
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
test eax, eax
je 0x40d5b8
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call esi
sub esp, 0x20
test eax, eax
jne 0x40d5d8
test bl, 1
je 0x40d580
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
test eax, eax
je 0x40d3e5
jmp 0x40d46e
call dword [0x415524]
sub esp, 8
test eax, eax
je 0x40d3d0
jmp 0x40d46e
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call dword [0x415524]
sub esp, 8
test eax, eax
setne al
movzx eax, al
jmp 0x40d555
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40d201
mov dword [esp], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], edx
call eax
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jmp 0x40d4e0
mov esi, dword [esp + 0x44]
mov dword [esp], ebp
call esi
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call esi
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40d201