Function at 0x40e52f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [0x41f024]
xor eax, esp
mov dword [esp + 0x878], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0x10
call dword [sym.imp.COMCTL32.dll_DPA_CreateEx]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x40ea04
xor ecx, ecx
inc ecx
call fcn.0040a807
xor ebx, ebx
push ebx
push ebx
push 0xb
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x110a
push dword [esi + 0x60]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x68], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x400
mov dword [esp + 0x34], 0x48
mov dword [esp + 0x40], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push ebx
push 0x113e
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x80]
mov ecx, dword [esi + 0x60]
push ebx
push 0x400
push eax
call fcn.0040ebe0
test byte [esp + 0x2c], 0x20
mov ebx, eax
mov dword [esp + 0x1c], ebx
je 0x40e935
test ebx, ebx
je 0x40e91a
lea eax, [esp + 0x18]
push eax
push 8
xor eax, eax
push eax
lea eax, [esp + 0x8c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e91a
push dword [esp + 0x28]
xor ebx, ebx
push ebx
push 0x1113
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x80]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40e666
sub ecx, edx
mov eax, 0x3ff
sar ecx, 1
sub eax, ecx
push eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x84]
push eax
xor eax, eax
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40e6e2
mov esi, dword [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
push dword [esp + 0x10]
mov eax, ebx
inc ebx
push eax
push edi
call dword [sym.imp.COMCTL32.dll_DPA_InsertPtr]
push esi
lea eax, [esp + 0x84]
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40e69e
mov esi, dword [esp + 0x50]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push eax
push 0x40ea30
push edi
call dword [sym.imp.COMCTL32.dll_DPA_Sort]
test ebx, ebx
jne 0x40e726
push edi
call dword [sym.imp.COMCTL32.dll_DPA_DeleteAllPtrs]
push dword [esp + 0x28]
push 0x8001
push 0x1102
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x44], ebx
jmp 0x40e964
push dword [esp + 0x28]
mov eax, dword [edi + 4]
dec ebx
push 4
push 0x110a
push dword [esi + 0x60]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [esp + 0x5c], edi
test edi, edi
je 0x40e769
lea eax, [esp + 0x58]
push eax
xor eax, eax
push eax
push 0x113e
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x5c]
test ebx, ebx
js 0x40e862
test edi, edi
je 0x40e898
push dword [esp + 0x10]
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e7c3
push dword [esp + 0x5c]
push 1
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x5c], eax
test eax, eax
je 0x40e7e9
lea eax, [esp + 0x58]
push eax
xor eax, eax
push eax
push 0x113e
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40e7e9
jle 0x40e80c
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
call fcn.0040ee65
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x60]
push eax
push dword [esp + 0x18]
push 0xffff0003
call fcn.0040eced
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
sub ebx, 1
js 0x40e85e
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x10], eax
jmp 0x40e855
push dword [esp + 0x5c]
push 1
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x5c]
mov edi, eax
xor eax, eax
push eax
push 0x1101
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x5c], edi
test edi, edi
je 0x40e898
lea eax, [esp + 0x58]
push eax
xor eax, eax
push eax
push 0x113e
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x5c]
jmp 0x40e771
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x40e90f
push edi
push 1
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x5c]
mov edi, eax
xor eax, eax
push eax
push 0x1101
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x5c], edi
jmp 0x40e862
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
call fcn.0040ee65
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x60]
push eax
push dword [esp + 0x18]
push 0xffff0003
call fcn.0040eced
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
mov edi, dword [esp + 0x14]
jmp 0x40e908
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x10], edx
call fcn.0040ee65
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x60]
push eax
push dword [esp + 0x18]
push 0xffff0003
call fcn.0040eced
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
sub ebx, 1
jns 0x40e8d0
jmp 0x40e913
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.COMCTL32.dll_DPA_DeleteAllPtrs]
push dword [esp + 0x28]
push 4
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
jmp 0x40e5db
test ebx, ebx
je 0x40e97a
push dword [esp + 0x28]
push 0x8001
push 0x1102
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x80]
mov ecx, ebx
call fcn.0040ee65
mov dword [esp + 0x44], eax
xor ebx, ebx
lea eax, [esp + 0x24]
push eax
push ebx
push 0x113f
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40e97c
xor ebx, ebx
push dword [esp + 0x28]
jmp 0x40e99f
push dword [esp + 0x28]
push 3
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40e9b8
push eax
push 1
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40e982
jmp 0x40e5db
push edi
call dword [sym.imp.COMCTL32.dll_DPA_Destroy]
push ebx
push 1
push 0xb
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x20]
cmp eax, dword [esp + 0x54]
jne 0x40e9f4
push edi
mov ecx, esi
call fcn.00415c17
test eax, eax
je 0x40e9fd
push ecx
push edi
mov ecx, esi
call fcn.0040d6c0
xor ecx, ecx
call fcn.0040a807
mov ecx, dword [esp + 0x884]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041dc30
mov esp, ebp
pop ebp
ret 4