Function at 0x40ec90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57209b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x28], ebp
lea ebx, [ebp + 4]
lea eax, [esp + 0x444]
xor esi, esi
push eax
mov ecx, ebx
mov dword [esp + 0x43c], esi
mov dword [ebp], esi
call fcn.00418790
lea ecx, [ebp + 8]
mov byte [esp + 0x438], 1
call fcn.004119d0
lea ecx, [ebp + 0xc]
mov byte [esp + 0x438], 2
call fcn.004119d0
lea ecx, [esp + 0x444]
mov byte [esp + 0x438], 3
push ecx
lea ecx, [ebp + 0x10]
call fcn.00418790
lea ecx, [ebp + 0x14]
mov byte [esp + 0x438], 4
call fcn.004119d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x438], 5
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x24], esi
call fcn.004119d0
push esi
lea ecx, [esp + 0x448]
mov byte [esp + 0x43c], 6
xor edi, edi
call fcn.00418d10
movsx edx, al
push edx
call fcn.005495d2
add esp, 4
test eax, eax
je 0x40edae
inc edi
lea ecx, [esp + 0x444]
push edi
call fcn.00418d10
movsx eax, al
push eax
call fcn.005495d2
add esp, 4
test eax, eax
jne 0x40ed5f
cmp edi, esi
jle 0x40edae
push 0xa
push esi
lea ecx, [esp + 0x44c]
call fcn.00418c00
mov esi, eax
lea ecx, [esp + 0x44c]
sub esi, edi
call fcn.004119e0
add esi, eax
push esi
call fcn.00549388
add esp, 0xc
mov dword [ebp + 0x1c], eax
lea ecx, [esp + 0x444]
push ecx
lea ecx, [esp + 0x18]
call fcn.004187b0
push 0x5c9744
lea ecx, [esp + 0x14]
call fcn.00418ba0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x43c], 7
call fcn.00418c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
mov eax, dword [str.CLSID]
lea ecx, [esp + 0x10]
push eax
call fcn.00418ba0
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 8
push ecx
lea ecx, [esp + 0x18]
call fcn.00418c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
mov edi, 0x400
push edx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
call fcn.00418c00
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
push 0x80000000
call esi
test eax, eax
jne 0x40efc0
mov ecx, dword [str.CLSID]
push ecx
lea ecx, [esp + 0x14]
call fcn.00418ba0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x43c], 9
call fcn.004187b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
push 0x5c9744
lea ecx, [esp + 0x14]
call fcn.00418ba0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x43c], 0xa
call fcn.00418c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00418ba0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x43c], 0xb
call fcn.00418c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
push 0x5c9744
lea ecx, [esp + 0x14]
call fcn.00418ba0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x43c], 0xc
call fcn.00418c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
mov ecx, dword [str.LocalServer32]
push ecx
lea ecx, [esp + 0x14]
call fcn.00418ba0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x43c], 0xd
call fcn.00418c10
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
call fcn.00418c00
push eax
push 0x80000000
call esi
test eax, eax
jne 0x40efc0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
call fcn.00418ba0
lea eax, [esp + 0x10]
lea ecx, [ebp + 0x14]
push eax
mov byte [esp + 0x43c], 0xe
call fcn.004187b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
mov eax, dword [str.APILevel]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x440]
push ecx
push edx
push eax
push edi
call esi
test eax, eax
je 0x40f015
mov edi, 0x5c9740
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edi, dword [esp + 0x440]
push 0xa
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00549388
add esp, 0xc
mov dword [ebp + 0x18], eax
mov ecx, dword [str.Version]
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x28], 0x400
call esi
test eax, eax
je 0x40f076
mov edi, 0x5d7ff8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x440]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00418ba0
lea edx, [esp + 0x10]
lea ecx, [ebp + 8]
push edx
mov byte [esp + 0x43c], 0xf
call fcn.004187b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5d7ff8
call fcn.00418ba0
mov esi, dword [esp + 0x44c]
mov eax, dword [str.Copyright]
push esi
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.0040f320
push eax
lea ecx, [ebp + 0xc]
mov byte [esp + 0x43c], 0x10
call fcn.004187b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x438], 6
call fcn.004186d0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebx
call fcn.00418790
mov edx, dword [str.Name]
push esi
push edx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040f320
push eax
mov ecx, ebx
mov byte [esp + 0x43c], 0x11
call fcn.004187b0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x438], 6
call fcn.004186d0
lea ecx, [esp + 0x30]
push 0x400
push ecx
push 0
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40f2d9
movsx edx, byte [esp + 0x30]
push edx
call fcn.005495d2
add esp, 4
test eax, eax
je 0x40f2ae
lea eax, [esp + 0x24]
push 0xa
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00549388
mov ebx, eax
add esp, 0xc
test ebx, ebx
jle 0x40f2ae
mov edx, dword [0x5c9698]
mov eax, dword [esp + 0x24]
push 2
push edx
push eax
call fcn.00549350
add esp, 0xc
test eax, eax
jne 0x40f2ae
mov ax, word [esp + 0x44c]
test ax, ax
je 0x40f1d2
mov ecx, ebx
and ecx, 0x3ff
cmp ax, cx
jne 0x40f2ae
mov edx, dword [esp + 0x24]
push 0xa
add edx, 2
push 0
push edx
call fcn.00549388
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x40f2ae
mov ax, word [esp + 0x450]
test ax, ax
je 0x40f20e
mov ecx, esi
and ecx, 0x3ff
cmp ax, cx
jne 0x40f2ae
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x5d7ff8
call fcn.00418ba0
mov edx, dword [esp + 0x44c]
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.0040f320
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 0x12
call fcn.004119e0
test eax, eax
je 0x40f29d
push 0xc
call fcn.00564fcb
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x438], 0x13
je 0x40f290
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00418790
mov ecx, dword [esp + 0x24]
and esi, 0x3ff
and ebx, 0x3ff
push esi
push ebx
call fcn.0040ec20
jmp 0x40f292
xor eax, eax
mov ecx, dword [ebp + 0x24]
mov dword [eax], ecx
mov dword [ebp + 0x24], eax
inc dword [ebp + 0x20]
lea ecx, [esp + 0x10]
mov byte [esp + 0x438], 6
call fcn.004186d0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
inc eax
push 0x400
push edx
push eax
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40f162
lea ecx, [esp + 0x14]
mov byte [esp + 0x438], 5
call fcn.004186d0
lea ecx, [esp + 0x444]
mov dword [esp + 0x438], 0xffffffff
call fcn.004186d0
mov ecx, dword [esp + 0x430]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x42c
ret 0x14