Function at 0x51d120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x34
push ebx
push esi
lea eax, [esp + 0x14]
push eax
mov esi, ecx
lea ecx, [esp + 0x14]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x66e97c
push ebx
push str.SoftwareDownloadManagerScheduler
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x51d3c7
mov ecx, dword [esp + 0x10]
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.isStartEnabled
mov ebp, 4
push ecx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d18a
mov byte [esi + 0x21], bl
jmp 0x51d194
cmp dword [esp + 0x14], ebx
setne dl
mov byte [esi + 0x21], dl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.isStopEnabled
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d1b9
mov byte [esi + 0x22], bl
jmp 0x51d1c3
cmp dword [esp + 0x14], ebx
setne al
mov byte [esi + 0x22], al
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.isStartDilay
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d1e8
mov byte [esi + 0x23], bl
jmp 0x51d1f2
cmp dword [esp + 0x14], ebx
sete cl
mov byte [esi + 0x23], cl
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.isForceTurnOff
push ecx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d217
mov byte [esi + 0x40], bl
jmp 0x51d221
cmp dword [esp + 0x14], ebx
setne dl
mov byte [esi + 0x40], dl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.isHangUpModem
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d246
mov byte [esi + 0x43], bl
jmp 0x51d250
cmp dword [esp + 0x14], ebx
setne al
mov byte [esi + 0x43], al
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.isTurnOffComputer
push eax
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d275
mov byte [esi + 0x41], bl
jmp 0x51d27f
cmp dword [esp + 0x14], ebx
setne cl
mov byte [esi + 0x41], cl
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.isExitIDMWhenDone
push ecx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d2a4
mov byte [esi + 0x42], bl
jmp 0x51d2ae
cmp dword [esp + 0x14], ebx
setne dl
mov byte [esi + 0x42], dl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push str.startDaysOfWeek
push edx
mov dword [esp + 0x28], ebp
call edi
test eax, eax
je 0x51d2d7
mov dword [esi + 0x3c], 0x7f
jmp 0x51d2de
mov eax, dword [esp + 0x14]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push str.startTime
push eax
mov dword [esp + 0x28], ebp
call edi
or ebp, 0xffffffff
test eax, eax
jne 0x51d33a
mov eax, dword [esp + 0x14]
cdq
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x28], edx
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.startDay
push ecx
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x51d381
mov eax, dword [esp + 0x14]
cdq
mov dword [esi + 0x30], edx
jmp 0x51d388
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x17
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x77
mov dword [esp + 0x44], ebp
call fcn.0061baf0
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, ebp
jne 0x51d306
push 0x80070057
call fcn.00401090
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov dword [esi + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push str.stopTime
push ecx
mov dword [esp + 0x28], 4
call edi
test eax, eax
jne 0x51d3cd
mov eax, dword [esp + 0x14]
cdq
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x18]
push edx
mov dword [esi + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x34
ret
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x1e
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x77
mov dword [esp + 0x44], ebp
call fcn.0061baf0
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, ebp
jne 0x51d3b4
push 0x80070057
call fcn.00401090
int3