Function at 0x40c13c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
lea eax, [ebp - 4]
push eax
mov ebx, 0xf003f
push ebx
push esi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call edi
test eax, eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
jg 0x40c182
call edi
mov edi, eax
jmp 0x40c192
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x40c3f4
push esi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
mov edi, 0x403a50
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
test eax, eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp - 4]
jg 0x40c1cf
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
jmp 0x40c1e3
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x40c3f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push esi
push esi
push esi
mov edi, 0x403a64
push edi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
test eax, eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp - 4]
jg 0x40c230
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
jmp 0x40c244
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x40c3f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push ebx
push esi
push esi
push esi
push 0x403a30
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call edi
push esi
test eax, eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push 0x403a30
push dword [ebp - 4]
jg 0x40c292
call edi
mov edi, eax
jmp 0x40c2a2
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x40c3f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push esi
push esi
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
call edi
push esi
push esi
push esi
push esi
push esi
push esi
test eax, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
jg 0x40c2f4
call edi
mov edi, eax
jmp 0x40c304
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x40c3f4
cmp dword [ebp - 0x14], esi
jbe 0x40c3f4
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004138fd
cmp eax, esi
pop ecx
mov dword [ebp - 0x18], eax
je 0x40c355
push 0x38
call fcn.004138d8
cmp eax, esi
pop ecx
je 0x40c34d
call fcn.0040b900
mov dword [ebp - 0x1c], eax
jmp 0x40c350
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
jne 0x40c35f
mov edi, 0x8007000e
jmp 0x40c3e6
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
jbe 0x40c3e6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 4]
call ebx
test eax, eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 4]
jg 0x40c3a7
call ebx
mov edi, eax
jmp 0x40c3b7
call ebx
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, esi
jl 0x40c3e6
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push esi
call fcn.0040b9a0
mov edi, eax
cmp edi, esi
jl 0x40c3e6
push dword [ebp - 0x1c]
call fcn.0040c10a
mov edi, eax
cmp edi, esi
jl 0x40c3e6
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x40c36d
cmp dword [ebp - 0x18], esi
je 0x40c3f4
push dword [ebp - 0x18]
call sub.MSVCR80.dll____V_YAXPAX_Z
pop ecx
cmp dword [ebp - 4], esi
je 0x40c402
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x40c410
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret