Function at 0x40c275
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x24c
mov eax, 0x40db9d
call fcn.0040d3c7
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x244], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x40c2b0
mov eax, 0x80004005
jmp 0x40c4dd
mov ecx, dword [esi]
call fcn.00405550
mov eax, dword [eax]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x40c4db
lea eax, [ebp - 0x230]
push eax
call fcn.00407f54
mov esi, dword [eax]
cmp dword [esi + 0x24], 0
je 0x40c4ce
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], ecx
mov edi, ecx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x240]
push 0x20019
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c4a2
mov ebx, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x244]
push ecx
push 0x2001f
push 1
push ecx
mov dword [ebp - 0x250], ebx
lea ecx, [ebp - 0x23c]
push dword [esi]
push dword [eax]
call fcn.0040574e
mov edi, dword [ebp - 0x23c]
test eax, eax
jne 0x40c4a2
mov dword [ebp - 0x220], eax
and dword [ebp - 0x224], 0
xor esi, esi
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x228], esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push ecx
push esi
lea ecx, [ebp - 0x22c]
push ecx
push esi
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40c3ce
cmp eax, 0xea
jne 0x40c428
push dword [ebp - 0x224]
and dword [ebp - 0x254], 0
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
mov dword [ebp - 0x228], esi
pop ecx
test esi, esi
je 0x40c4e5
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], 0x104
push eax
push esi
lea eax, [ebp - 0x22c]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40c450
push dword [ebp - 0x224]
push esi
push dword [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x220]
jmp 0x40c462
cmp eax, 0x103
je 0x40c48b
mov eax, dword [ebp - 0x220]
cmp eax, 0x64
ja 0x40c48b
inc eax
mov dword [ebp - 0x220], eax
push esi
mov byte [ebp - 4], 5
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x220]
pop ecx
mov byte [ebp - 4], 1
jmp 0x40c380
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x228], 0
pop ecx
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
test edi, edi
je 0x40c4b8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x23c], 0
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40c4ce
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x250], 0
cmp dword [ebp - 0x230], 0
jne 0x40c2c7
xor eax, eax
call fcn.0040d376
ret 8
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x228], 0
mov byte [ebp - 4], 0
pop ecx
test edi, edi
je 0x40c50f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x23c], 0
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40c525
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x250], 0
mov eax, 0x8007000e
jmp 0x40c4dd