Function at 0x416d50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45141b
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x45c], eax
xor eax, eax
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0x468], edx
mov dword [ebp - 0x464], esi
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
push esi
push edx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x45c]
push eax
push str.CRegEmsDeployment::ReportStatus
push str._ws____dwRetCode_d__dwState_d__dwErr_d__dwData0x_lx
call fcn.00416990
add esp, 0x18
call fcn.00416870
mov esi, eax
mov dword [ebp - 0x470], esi
test esi, esi
je 0x417037
push 0x20a
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0042b800
push 0x20a
lea eax, [ebp - 0x428]
push edi
push eax
call fcn.0042b800
add esp, 0x18
mov dword [ebp - 0x460], 0x104
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x474]
push eax
push edi
push str.sch_setup_reporthistory
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
call fcn.0043b694
push dword [ebp - 0x464]
push dword [ebp - 0x468]
push dword [ebp - 0x46c]
push dword [ebp - 0x45c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x458]
push str._stime0x_lx_ret_d_stat_d_err_d_data0x_lx
push eax
call fcn.004150b0
mov esi, eax
add esp, 0x24
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x416eb6
mov ecx, eax
call fcn.0040c360
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x430], xmm0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x458]
call fcn.0040c360
mov eax, dword [ebp - 0x430]
cmp eax, 0x104
jbe 0x416fe9
lea edx, [eax - 0x104]
mov dword [ebp - 0x448], 0
xor ecx, ecx
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], cx
cmp eax, edx
jb 0x417090
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x458]
lea eax, [eax + edx*2]
push eax
call fcn.0040cfe0
lea ecx, [ebp - 0x440]
call fcn.0040c360
movups xmm0, xmmword [ebp - 0x458]
xor eax, eax
lea ecx, [ebp - 0x458]
mov word [ebp - 0x458], ax
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [ebp - 0x448]
movq qword [ebp - 0x430], xmm0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
call fcn.0040c360
cmp dword [ebp - 0x42c], 8
lea edx, [ebp - 0x440]
mov ecx, dword [ebp - 0x430]
cmovae edx, dword [ebp - 0x440]
test ecx, ecx
je 0x416fe9
mov eax, edx
nop dword [eax]
cmp word [eax], 0x7c
je 0x416fb0
add eax, 2
sub ecx, 1
jne 0x416fa0
jmp 0x416fe9
test eax, eax
je 0x416fe9
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x416fe9
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x440]
call fcn.00417300
push eax
lea ecx, [ebp - 0x440]
call fcn.00414de0
lea ecx, [ebp - 0x458]
call fcn.0040c360
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416ff2
mov esi, dword [ebp - 0x470]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x428]
push eax
push 1
push 0
push str.sch_setup_reporthistory
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0xfffffff6
cmovne edi, ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x417073
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417069
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417095
push edx
push ecx
call fcn.00428a68
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
call fcn.00415250
call fcn.0043af68
int3