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

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0xac
lea eax, [esp + 0x5c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 0x5c], 0
call fcn.0040cd00
test eax, eax
je 0x40d6cd
mov edi, eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40d6cd
cmp word [edi], 0
jne 0x40d910
mov dword [esp + 0x60], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edi
mov dword [esp + 0x40], eax
call eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x44], eax
call eax
sub esp, 0x30
test eax, eax
je 0x40d6e0
xor eax, eax
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x68]
mov dword [esp + 0x78], 0x40
mov edi, dword [0x4156fc]
mov dword [esp + 0x7c], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113f
mov dword [esp + 0x98], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call edi
sub esp, 0x10
test eax, eax
je 0x40d6cd
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1127
mov dword [esp], ebx
call edi
sub esp, 0x10
test eax, eax
je 0x40daa0
mov eax, dword [esp + 0x6c]
mov ebp, dword [sym.imp.ucrtbase.dll_malloc]
lea edx, [eax + 1]
lea ecx, [edx + edx]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x4c], edx
mov dword [esp], ecx
mov dword [esp + 0x48], ecx
call ebp
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x8c], edx
mov dword [esp], ecx
call ebp
mov ebp, eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40dacb
mov edx, dword [esp + 0x4c]
xor ebp, ebp
mov dword [esp + 0x48], esi
jmp 0x40d7b1
add ebp, 1
cmp ebp, dword [esp + 0x68]
jae 0x40dac0
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x70]
mov dword [esp + 0x70], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], 0
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x40d7a0
lea eax, [esp + 0x64]
mov dword [esp + 0x74], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x40d9c0
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call edi
sub esp, 0x10
mov esi, eax
test eax, eax
je 0x40d98c
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x3c]
jmp 0x40d8bd
mov eax, dword [esp + 0x88]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x40da50
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x110a
mov dword [esp], ebx
call edi
sub esp, 0x10
mov esi, eax
test eax, eax
je 0x40d988
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 1
mov dword [esp + 0x7c], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], ebx
call edi
sub esp, 0x10
test eax, eax
jne 0x40d878
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov dword [esp], eax
call ebx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call ebx
jmp 0x40d6cd
lea edx, [esp + 0x60]
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
test eax, eax
je 0x40d64e
test byte [0x4102e4], 8
je 0x40d6cd
mov eax, edi
call fcn.0040ca10
mov dword [esp + 0xc], str.RegOpenKeyEx_failed___s_was_probably_removed._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x411ef8
mov dword [esp + 4], 0x4102e4
mov dword [esp], 3
call fcn.0040ccb0
jmp 0x40d6cd
mov ebp, dword [esp + 0x4c]
test byte [0x4102e4], 8
jne 0x40da60
mov eax, dword [esp + 0x74]
mov dword [esp], 0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0040c7f0
jmp 0x40d7a0
lea eax, [esp + 0x74]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call eax
sub esp, 0x30
test eax, eax
je 0x40da34
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40d83d
mov ebp, dword [esp + 0x4c]
jmp 0x40d7a0
mov eax, dword [esp + 0x3c]
call fcn.0040ca10
mov dword [esp + 0xc], str.New_subkey__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x411ef8
mov dword [esp + 4], 0x4102e4
mov dword [esp], 3
call fcn.0040ccb0
jmp 0x40d999
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, 1
jmp 0x40d6cf
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x88]
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call eax
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
call eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov dword [esp], ebx
call edi
sub esp, 0x10
mov esi, eax
test esi, esi
je 0x40dab0
mov ebp, esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x110a
mov dword [esp], ebx
call edi
mov edx, ebp
sub esp, 0x10
mov esi, eax
mov eax, ebx
call fcn.0040d600
test eax, eax
jne 0x40db0f
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1101
mov dword [esp], ebx
call edi
sub esp, 0x10
jmp 0x40db0f