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

Disassembly:
mov eax, 0x1038
call fcn.10047080
mov eax, dword [0x10056024]
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 0x10038846
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
je 0x10038846
mov edx, ebx
mov ecx, esi
call fcn.10038420
test eax, eax
je 0x10038837
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x100386b5
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 0x100386ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x100386d6
cmp ebx, edi
je 0x100386e0
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call edi
jmp 0x100386e6
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, ebp
je 0x10038846
test ebx, ebx
jne 0x100386f4
call edi
cmp esi, dword [ebx + 8]
jb 0x100386fb
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 0x10038711
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 0x10038727
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 0x10038837
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10038784
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 0x1003882c
mov eax, esi
lea edx, [eax + 2]
jmp 0x100387c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100387c0
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
mov edx, dword [esp + 0x10]
jne 0x1003883b
push 0x10
lea ecx, [esp + 0x28]
push ecx
push 0xb
push eax
push str.ExecTime
push edx
call edi
test eax, eax
mov eax, dword [esp + 0x10]
push eax
jne 0x10038831
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x38]
lea esi, [esp + 0x14]
call fcn.10038970
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
jmp 0x100386c0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1003884b
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1003884b
mov eax, 1
mov ecx, dword [esp + 0x1044]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10045f6c
add esp, 0x1038
ret 4