Function at 0x51fc10
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64b350
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6f7b78]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x1164]
mov dword [esp + 0x24], 0
test eax, eax
je 0x51fc51
cmp dword [esi + 0x1168], 3
jne 0x51fc6e
mov eax, dword [esi + 0x3c4]
test eax, eax
je 0x51fc6e
lea ecx, [esi + 0x3a8]
call fcn.0050f6e0
test al, al
je 0x51ff9c
mov eax, dword [esi + 0x1164]
test eax, eax
jne 0x51ff7e
mov eax, dword [esi + 0x1054]
test eax, eax
je 0x51fcaf
lea ecx, [esi + 0x1038]
call fcn.0050a360
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x51fcaf
mov al, byte [esi + 0x1158]
test al, al
je 0x51fcaf
push 0
call fcn.00421f40
mov eax, dword [esi + 0x9c8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x51fd7b
mov ecx, dword [esi + 0xc78]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push ecx
call edi
cmp eax, 0xffffffff
je 0x51fd13
mov edx, dword [esi + 0xc78]
push 0
push eax
push 0x150
push edx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x51fd13
mov ecx, dword [0x6fcafc]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.NewConnType
push ecx
call ebp
mov edx, dword [0x6f7b78]
mov dword [esp + 0xc], edx
lea eax, [esp + 0xc]
lea ecx, [esi + 0xb68]
push eax
mov byte [esp + 0x28], 1
call fcn.0062451a
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00609e33
add esp, 4
cmp eax, 1
je 0x51fd62
cmp eax, 2
je 0x51fd62
cmp eax, 4
je 0x51fd62
cmp eax, 8
je 0x51fd62
cmp eax, 0x10
je 0x51fd62
cmp eax, 0x18
je 0x51fd62
cmp eax, 0x20
jne 0x51fd6d
push eax
mov ecx, 0x6fc990
call fcn.00500dc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00622d8a
mov eax, dword [esi + 0xe04]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x51fea5
mov edx, dword [esi + 0xf50]
push 0
push 0
push 0xf0
push edx
call edi
lea edx, [esp + 0xc]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x6fcafc]
push 4
push 0
push str.ComplDlgShowing
setne cl
push eax
mov dword [esp + 0x24], ecx
call ebp
mov ecx, dword [esi + 0xf00]
push 0
push 0
push 0xf0
push ecx
call edi
mov ecx, dword [0x6fcafc]
xor edx, edx
test eax, eax
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.bQueueSelPnlOnDlLt
setne dl
push ecx
mov dword [esp + 0x24], edx
call ebp
mov edx, dword [esi + 0xef0]
push 0
push 0
push 0xf0
push edx
call edi
lea edx, [esp + 0xc]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x6fcafc]
push 4
push 0
push str.bQueueSelPnlOnGAL
setne cl
push eax
mov dword [esp + 0x24], ecx
call ebp
mov ecx, dword [esi + 0xf20]
push 0
push 0
push 0xf0
push ecx
call edi
mov ecx, dword [0x6fcafc]
xor edx, edx
test eax, eax
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.bIgnMTCh
setne dl
push ecx
mov dword [esp + 0x24], edx
call ebp
mov edx, dword [esi + 0xf40]
push 0
push 0
push 0xf0
push edx
call edi
lea edx, [esp + 0xc]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x6fcafc]
push 4
push 0
push str.StartDlgShowing
setne cl
push eax
mov dword [esp + 0x24], ecx
call ebp
lea ecx, [esi + 0xde8]
call fcn.005136e0
mov eax, dword [esi + 0x9c8]
test eax, eax
je 0x51fedb
lea ecx, [esi + 0x9ac]
call fcn.00507e60
test al, al
je 0x51ff9c
mov eax, dword [esi + 0x115c]
test eax, eax
je 0x51fedb
push 0
push 0x13c2
push 0x111
push eax
call edi
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x51fef0
lea ecx, [esi + 0xa8]
call fcn.005164e0
mov eax, dword [esi + 0x1170]
test eax, eax
je 0x51ff07
lea ecx, [esi + 0x680]
call fcn.0050af90
jmp 0x51ff12
lea ecx, [esi + 0x83c]
call fcn.004173a0
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6fc418
push 0
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x51ff74
lea edx, [esp + 0x18]
push edx
call fcn.0060b449
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
push 4
push ecx
push 4
push 0
push 0x6fc418
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x1164]
test eax, eax
je 0x51ff87
cmp dword [esi + 0x1168], 5
jne 0x51ff9c
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x51ff9c
lea ecx, [esi + 0x1a8]
call fcn.00509c30
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret