Function at 0x1007ca70
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov eax, 0x1038
call fcn.1010ecf0
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x104c]
mov ebx, edx
xor ebp, ebp
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x1007cca4
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
je 0x1007cca4
mov edx, ebx
mov ecx, esi
call fcn.1007c860
test eax, eax
je 0x1007cc82
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x1007caf5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
nop
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x1007cb0e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x1007cb16
cmp ebx, edi
je 0x1007cb20
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call edi
jmp 0x1007cb26
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebp
je 0x1007cca4
test ebx, ebx
jne 0x1007cb34
call edi
cmp esi, dword [ebx + 8]
jb 0x1007cb3b
call edi
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
cmp esi, dword [ebx + 8]
mov edi, eax
jb 0x1007cb51
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp esi, dword [ebx + 8]
mov ebp, eax
jb 0x1007cb67
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x1c]
push edi
push ecx
push str._s_d
lea edx, [esp + 0x4c]
push 0x800
push edx
mov esi, eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x14
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x5c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1007cc82
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007cbc4
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push 0
push str.Script
push ecx
call edi
test eax, eax
jne 0x1007cc77
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007cc00
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push 0
push str.Parameters
push eax
call edi
test eax, eax
jne 0x1007cc86
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x28]
push ecx
push 0xb
push eax
push str.ExecTime
push edx
call edi
test eax, eax
jne 0x1007cc95
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x38]
lea esi, [esp + 0x14]
call fcn.1007cdf0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
jmp 0x1007cb00
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1007cca9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1007cca9
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1007cca9
mov eax, 1
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010dc50
add esp, 0x1038
ret 4