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

Disassembly:
mov eax, 0x1038
call fcn.1012e520
mov eax, dword [0x10170024]
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 0x1007cb64
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
je 0x1007cb64
mov edx, ebx
mov ecx, esi
call fcn.1007c720
test eax, eax
je 0x1007cb42
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x1007c9b5
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 0x1007c9ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x1007c9d6
cmp ebx, edi
je 0x1007c9e0
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call edi
jmp 0x1007c9e6
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebp
je 0x1007cb64
test ebx, ebx
jne 0x1007c9f4
call edi
cmp esi, dword [ebx + 8]
jb 0x1007c9fb
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 0x1007ca11
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 0x1007ca27
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 0x1007cb42
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007ca84
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 0x1007cb37
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007cac0
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 0x1007cb46
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 0x1007cb55
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.1007ccb0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
jmp 0x1007c9c0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1007cb69
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1007cb69
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1007cb69
mov eax, 1
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012d370
add esp, 0x1038
ret 4