Function at 0x511af0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x651870
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x28], 0
cmp dword [esi + 0x1454], 0
je 0x511b3b
cmp dword [esi + 0x1458], 3
jne 0x511b57
cmp dword [esi + 0x498], 0
je 0x511b57
lea ecx, [esi + 0x478]
call fcn.00504590
test al, al
je 0x511e76
cmp dword [esi + 0x1454], 0
jne 0x511e59
cmp dword [esi + 0x12f8], 0
je 0x511b94
lea ecx, [esi + 0x12d8]
call fcn.004ff030
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0x1c], 0
jne 0x511b94
cmp byte [esi + 0x1424], 0
je 0x511b94
push 0
call fcn.00415580
cmp dword [esi + 0xb50], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x511c5d
mov eax, dword [esi + 0xe44]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push eax
call edi
cmp eax, 0xffffffff
je 0x511bf6
mov ecx, dword [esi + 0xe44]
push 0
push eax
push 0x150
push ecx
call edi
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x511bf6
mov eax, dword [0x754bec]
push 4
lea edx, [esp + 0x20]
push edx
push 4
push 0
push str.NewConnType
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.00402500
mov byte [esp + 0x28], 1
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0xd0c]
call fcn.005f2321
mov edx, dword [esp + 0x10]
push edx
call fcn.006198b1
add esp, 4
cmp eax, 1
je 0x511c44
cmp eax, 2
je 0x511c44
cmp eax, 4
je 0x511c44
cmp eax, 8
je 0x511c44
cmp eax, 0x10
je 0x511c44
cmp eax, 0x18
je 0x511c44
cmp eax, 0x20
jne 0x511c4f
push eax
mov ecx, 0x754d5c
call fcn.004f5220
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x10]
call fcn.00402570
cmp dword [esi + 0x1008], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x511d84
mov eax, dword [esi + 0x117c]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
mov edx, dword [0x754bec]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.ComplDlgShowing
neg eax
push edx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0x112c]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
mov edx, dword [0x754bec]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.bQueueSelPnlOnDlLt
neg eax
push edx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0x111c]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
mov edx, dword [0x754bec]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.bQueueSelPnlOnGAL
neg eax
push edx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0x114c]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
mov edx, dword [0x754bec]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.bIgnMTCh
neg eax
push edx
mov dword [esp + 0x28], eax
call ebp
mov eax, dword [esi + 0x116c]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
mov edx, dword [0x754bec]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.StartDlgShowing
neg eax
push edx
mov dword [esp + 0x28], eax
call ebp
lea ecx, [esi + 0xfe8]
call fcn.00507e30
cmp dword [esi + 0xb50], 0
je 0x511db9
lea ecx, [esi + 0xb30]
call fcn.004fc4d0
test al, al
je 0x511e76
mov eax, dword [esi + 0x1438]
test eax, eax
je 0x511db9
push 0
push 0x13c2
push 0x111
push eax
call edi
cmp dword [esi + 0xf0], 0
je 0x511dcd
lea ecx, [esi + 0xd0]
call fcn.0050a1b0
cmp dword [esi + 0x1460], 0
je 0x511de3
lea ecx, [esi + 0x7c0]
call fcn.004ffa40
jmp 0x511dee
lea ecx, [esi + 0x9a8]
call fcn.00578340
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0x670984
push 0
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x511e50
lea ecx, [esp + 0x1c]
push ecx
call fcn.0061b821
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 4
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push 0x670984
push ecx
mov dword [esp + 0x28], edx
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x1454], 0
je 0x511e62
cmp dword [esi + 0x1458], 5
jne 0x511e76
cmp dword [esi + 0x210], 0
je 0x511e76
lea ecx, [esi + 0x1f0]
call fcn.004fe970
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret