Function at 0x40d4f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x68], 0xb932
mov dword [ebp - 0x84], 0x11199
mov dword [ebp - 0x80], 0x16bda
mov dword [ebp - 0x28], 0xcc86
mov dword [ebp - 0x14], 0x6352
mov dword [ebp - 0x38], 0x2f12
mov dword [ebp - 8], 0xaf0c
mov dword [ebp - 0x24], 0x288a
mov dword [ebp - 0x20], 0xe5c5
mov dword [ebp - 0x1c], 0x90c8
mov dword [ebp - 0x10], 0x735
mov dword [ebp - 4], 0xedc1
mov dword [ebp - 0xc], 0x131ce
mov dword [ebp - 0x30], 0x76d2
mov dword [ebp - 0x88], 0xc99b
mov dword [ebp - 0x34], 0x171d0
mov dword [ebp - 0x64], 0x1c66
mov dword [ebp - 0x2c], 0xbf09
mov dword [ebp - 0x70], 0x104c6
mov dword [ebp - 0x18], 0x67a0
mov dword [ebp - 0x60], 0x45f5
mov dword [ebp - 0x8c], 0x6d2d
mov dword [ebp - 0x54], 0x171fb
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x14]
jge 0x40d7f3
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 8]
jne 0x40d7f3
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jne 0x40d7f3
push 0x15e49
push 0x10cf3
call dword [sym.imp.KERNEL32.dll_GetNLSVersion]
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jge 0x40d5f7
mov dword [ebp - 0x3c], 1
jmp 0x40d5fe
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x38]
cmp eax, dword [ebp + 0x10]
jge 0x40d61b
mov dword [ebp - 0x40], 1
jmp 0x40d622
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x24]
and ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
or edx, dword [ebp - 0x14]
and ecx, edx
and ecx, dword [ebp - 0x40]
je 0x40d7f3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jne 0x40d7f3
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jne 0x40d7f3
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp + 8]
jne 0x40d7f3
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x34]
jne 0x40d7f3
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x2c]
jge 0x40d683
mov dword [ebp - 0x44], 1
jmp 0x40d68a
mov dword [ebp - 0x44], 0
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
jge 0x40d69f
mov dword [ebp - 0x48], 1
jmp 0x40d6a6
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x44]
and ecx, dword [ebp - 0x34]
and ecx, dword [ebp - 0x60]
and ecx, dword [ebp - 0x48]
je 0x40d7e0
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x40d6d2
mov dword [ebp - 0x4c], 1
jmp 0x40d6d9
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x1c]
jge 0x40d6f3
mov dword [ebp - 0x50], 1
jmp 0x40d6fa
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x4c]
or ecx, dword [ebp - 0x14]
or ecx, dword [ebp - 0x24]
or ecx, dword [ebp - 0x50]
je 0x40d7e0
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x74], 0
je 0x40d7e0
mov edx, dword [ebp - 0x1c]
and edx, dword [ebp - 0x54]
je 0x40d7e0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
sub eax, 1
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [ebp - 0x7c]
jge 0x40d775
mov dword [ebp - 0x58], 1
jmp 0x40d77c
mov dword [ebp - 0x58], 0
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x80]
jge 0x40d78d
mov dword [ebp - 0x5c], 1
jmp 0x40d794
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x58]
or eax, dword [ebp - 0x5c]
je 0x40d7e0
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x28]
jne 0x40d7e0
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x60]
jne 0x40d7e0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x18]
jne 0x40d7e0
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x20]
jne 0x40d7e0
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x68]
jne 0x40d7e0
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
push 0x12be3
push 0x4e1b
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add esp, 8
push 0x5b74
push 0x10ee0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
add esp, 8
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x24]
jge 0x40d804
mov dword [ebp - 0x6c], 1
jmp 0x40d80b
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x68]
and edx, dword [ebp - 0x10]
and edx, dword [ebp - 0x38]
and edx, dword [ebp - 8]
or edx, dword [ebp - 0x6c]
je 0x40d825
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
mov esp, ebp
pop ebp
ret