Function at 0x5160a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x656b80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x755898]
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 0x5160eb
cmp dword [esi + 0x1458], 3
jne 0x516107
cmp dword [esi + 0x498], 0
je 0x516107
lea ecx, [esi + 0x478]
call fcn.00508ba0
test al, al
je 0x516426
cmp dword [esi + 0x1454], 0
jne 0x516409
cmp dword [esi + 0x12f8], 0
je 0x516144
lea ecx, [esi + 0x12d8]
call fcn.00503640
mov ecx, dword [esi + 0xc0]
cmp dword [ecx + 0x1c], 0
jne 0x516144
cmp byte [esi + 0x1424], 0
je 0x516144
push 0
call fcn.004151f0
cmp dword [esi + 0xb50], 0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x51620d
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 0x5161a6
mov ecx, dword [esi + 0xe44]
push 0
push eax
push 0x150
push ecx
call edi
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x5161a6
mov eax, dword [0x75abd8]
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.005f74f2
mov edx, dword [esp + 0x10]
push edx
call fcn.0061eb31
add esp, 4
cmp eax, 1
je 0x5161f4
cmp eax, 2
je 0x5161f4
cmp eax, 4
je 0x5161f4
cmp eax, 8
je 0x5161f4
cmp eax, 0x10
je 0x5161f4
cmp eax, 0x18
je 0x5161f4
cmp eax, 0x20
jne 0x5161ff
push eax
mov ecx, 0x75ad4c
call fcn.004f99d0
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 0x516334
mov eax, dword [esi + 0x117c]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
mov edx, dword [0x75abd8]
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 [0x75abd8]
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 [0x75abd8]
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 [0x75abd8]
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 [0x75abd8]
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.0050c440
cmp dword [esi + 0xb50], 0
je 0x516369
lea ecx, [esi + 0xb30]
call fcn.00500ae0
test al, al
je 0x516426
mov eax, dword [esi + 0x1438]
test eax, eax
je 0x516369
push 0
push 0x13c2
push 0x111
push eax
call edi
cmp dword [esi + 0xf0], 0
je 0x51637d
lea ecx, [esi + 0xd0]
call fcn.0050e7c0
cmp dword [esi + 0x1460], 0
je 0x516393
lea ecx, [esi + 0x7c0]
call fcn.00504050
jmp 0x51639e
lea ecx, [esi + 0x9a8]
call fcn.00537920
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0x676974
push 0
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x516400
lea ecx, [esp + 0x1c]
push ecx
call fcn.00620aa1
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 0x676974
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 0x516412
cmp dword [esi + 0x1458], 5
jne 0x516426
cmp dword [esi + 0x210], 0
je 0x516426
lea ecx, [esi + 0x1f0]
call fcn.00502f80
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