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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5321d4
mov eax, dword fs:[0]
push eax
sub esp, 0xa3c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xa30], ebx
mov dword [ebp - 0xa28], edi
mov dword [ebp - 0xa24], edi
mov dword [ebp - 0xa20], edi
mov dword [ebp - 4], edi
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xa28]
call fcn.0040e320
test eax, eax
je 0x40ede6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa28]
cmp eax, edi
je 0x40f019
push eax
jmp 0x40f00d
mov dword [ebp - 0xa1c], edi
mov esi, dword [ebp - 0xa28]
lea eax, [ebp - 0xa48]
push eax
mov eax, dword [ebp - 0xa1c]
push edi
push edi
push edi
lea ecx, [ebp - 0xa2c]
push ecx
lea edx, [ebp - 0x110]
push edx
push eax
push esi
mov dword [ebp - 0xa2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40f001
cmp eax, edi
jne 0x40eff6
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa38], edi
mov dword [ebp - 0xa34], edi
mov byte [ebp - 4], 1
push 0x20019
lea ecx, [ebp - 0x110]
push ecx
push esi
lea ecx, [ebp - 0xa3c]
call fcn.0040e320
test eax, eax
jne 0x40efd5
mov edx, dword [ebp - 0xa18]
lea eax, [ebp - 0xa14]
push eax
push edi
lea ecx, [ebp - 0xa40]
push ecx
push edi
mov dword [ebp - 0xa14], edx
mov edx, dword [ebp - 0xa3c]
push str.DisplayName
push edx
mov dword [ebp - 0xa18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x40efd5
mov eax, dword [ebp - 0xa40]
cmp eax, 1
je 0x40eebb
cmp eax, 2
jne 0x40efd5
mov eax, dword [ebp - 0xa14]
lea ecx, [ebp - 0xa18]
push ecx
lea edx, [ebp - 0x210]
push edx
push str.DisplayName
lea ecx, [ebp - 0xa3c]
mov dword [ebp - 0xa18], eax
call fcn.0040e3d0
push 0x400
lea eax, [ebp - 0xa10]
push edi
push eax
call fcn.004ff6f0
mov ecx, dword [ebp - 0xa18]
add esp, 0xc
push ecx
lea edx, [ebp - 0xa10]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
sub esi, eax
sar esi, 2
cmp esi, edi
jbe 0x40ef77
mov ebx, eax
lea esp, [esp]
mov ecx, dword [ebx]
lea eax, [ebp - 0xa10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ef5e
test dx, dx
je 0x40ef5a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ef5e
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ef38
xor eax, eax
jmp 0x40ef63
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40efcd
inc edi
add ebx, 4
cmp edi, esi
jb 0x40ef30
mov ebx, dword [ebp - 0xa30]
xor edi, edi
push 0x200
call fcn.00480850
add esp, 4
mov dword [ebp - 0xa14], eax
mov byte [ebp - 4], 2
cmp eax, edi
je 0x40efb1
lea ecx, [ebp - 0xa10]
mov esi, eax
mov edx, ecx
sub esi, edx
mov edi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
cmp dx, di
jne 0x40efa0
jmp 0x40efb3
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0xa14], eax
lea eax, [ebp - 0xa14]
push eax
mov ecx, ebx
call fcn.0040ec10
jmp 0x40efd5
mov ebx, dword [ebp - 0xa30]
xor edi, edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xa3c]
cmp eax, edi
je 0x40eff0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa3c], edi
mov dword [ebp - 0xa38], edi
inc dword [ebp - 0xa1c]
jmp 0x40edec
mov dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x40f019
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa28], edi
mov dword [ebp - 0xa24], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret