Function at 0x4d7170
Capabilities:
Check os version
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5c77c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x682f9c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x19dc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [esp + 0x30], 0
je 0x4d71bc
cmp dword [esi + 0x19e0], 3
jne 0x4d73cd
mov eax, dword [esi + 0x4f8]
test eax, eax
je 0x4d73cd
lea ebp, [esi + 0x4dc]
mov ecx, ebp
call fcn.004ca170
test al, al
je 0x4d77ac
lea ecx, [esp + 0x10]
push ecx
push 0x44f
mov ecx, ebp
call fcn.005a2b43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d7218
mov edx, dword [0x687b54]
inc eax
push eax
push ecx
push 1
push 0
push str.HttpProxy
push edx
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4d722b
mov eax, dword [0x687b54]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.HttpProxy
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0x450
mov ecx, ebp
call fcn.005a2b43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d725e
mov edx, dword [0x687b54]
inc eax
push eax
push ecx
push 1
push 0
push str.HttpPort
push edx
call edi
jmp 0x4d726b
mov eax, dword [0x687b54]
push str.HttpPort
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0x451
mov ecx, ebp
call fcn.005a2b43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d729e
mov edx, dword [0x687b54]
inc eax
push eax
push ecx
push 1
push 0
push str.HttpUserName
push edx
call edi
jmp 0x4d72ab
mov eax, dword [0x687b54]
push str.HttpUserName
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0x452
mov ecx, ebp
call fcn.005a2b43
mov edx, dword [esp + 0x10]
mov eax, dword [0x687b54]
push 1
push edx
push str.HttpEncPassword
push str.HttpPasword
push eax
call fcn.0055a4a0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 0x455
mov ecx, ebp
call fcn.005a2b43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d730e
mov edx, dword [0x687b54]
inc eax
push eax
push ecx
push 1
push 0
push str.FtpProxy
push edx
call edi
jmp 0x4d731b
mov eax, dword [0x687b54]
push str.FtpProxy
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0x456
mov ecx, ebp
call fcn.005a2b43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d734e
mov edx, dword [0x687b54]
inc eax
push eax
push ecx
push 1
push 0
push str.FtpPort
push edx
call edi
jmp 0x4d735b
mov eax, dword [0x687b54]
push str.FtpPort
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0x457
mov ecx, ebp
call fcn.005a2b43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d738e
mov edx, dword [0x687b54]
inc eax
push eax
push ecx
push 1
push 0
push str.FtpUserName
push edx
call edi
jmp 0x4d739b
mov eax, dword [0x687b54]
push str.FtpUserName
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0x458
mov ecx, ebp
call fcn.005a2b43
mov edx, dword [esp + 0x10]
mov eax, dword [0x687b54]
push 1
push edx
push str.FtpEncPassword
push str.FtpPasword
push eax
call fcn.0055a4a0
add esp, 0x14
jmp 0x4d73d3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x19dc]
test eax, eax
jne 0x4d778e
mov eax, dword [esi + 0x18a0]
test eax, eax
je 0x4d7414
lea ecx, [esi + 0x1884]
call fcn.004c5f50
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4d7414
mov al, byte [esi + 0x19d0]
test al, al
je 0x4d7414
push 0
call fcn.00416df0
mov eax, dword [esi + 0xd30]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4d74fe
lea ebx, [esi + 0xd14]
push 0x47c
mov ecx, ebx
call fcn.005a4c4c
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0x147
push ecx
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x4d749b
mov eax, dword [0x687b54]
lea edx, [esp + 0x20]
push 4
push edx
push 4
push 0
push str.ConnectionType
push eax
call edi
push 1
push 0
push 0x47e
mov ecx, ebx
call fcn.005a4ca4
test eax, eax
mov dword [esp + 0x24], eax
je 0x4d749b
mov edx, dword [0x687b54]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push 0
push str.ConnectionSpeed
push edx
call edi
mov eax, dword [0x682f9c]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
lea ecx, [esi + 0x11a0]
call fcn.005a2afb
mov edx, dword [esp + 0x18]
push edx
call fcn.005897a3
add esp, 4
cmp eax, 1
je 0x4d74df
cmp eax, 2
je 0x4d74df
cmp eax, 4
je 0x4d74df
cmp eax, 8
je 0x4d74df
cmp eax, 0x10
jne 0x4d74ea
push eax
mov ecx, 0x6879e8
call fcn.004be4d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.005a584d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x143c]
test eax, eax
je 0x4d76bd
mov eax, dword [esi + 0x166c]
push 0
push 0
push 0xf0
push eax
call ebp
lea edx, [esp + 0x14]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x687b54]
push 4
push 0
push str.ComplDlgShowing
setne cl
push eax
mov dword [esp + 0x2c], ecx
call edi
mov ecx, dword [esi + 0x1504]
push 0
push 0
push 0xf0
push ecx
call ebp
mov ecx, dword [0x687b54]
xor edx, edx
test eax, eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.bQueueSelPnlOnDlLt
setne dl
push ecx
mov dword [esp + 0x2c], edx
call edi
mov edx, dword [esi + 0x14c8]
push 0
push 0
push 0xf0
push edx
call ebp
lea edx, [esp + 0x14]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x687b54]
push 4
push 0
push str.bQueueSelPnlOnGAL
setne cl
push eax
mov dword [esp + 0x2c], ecx
call edi
mov ecx, dword [esi + 0x15b8]
push 0
push 0
push 0xf0
push ecx
call ebp
mov ecx, dword [0x687b54]
xor edx, edx
test eax, eax
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.bIgnMTCh
setne dl
push ecx
mov dword [esp + 0x2c], edx
call edi
mov edx, dword [esi + 0x1630]
push 0
push 0
push 0xf0
push edx
call ebp
lea edx, [esp + 0x14]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [0x687b54]
push 4
push 0
push str.StartDlgShowing
setne cl
push eax
mov dword [esp + 0x2c], ecx
call edi
mov ecx, dword [0x682f9c]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
lea ecx, [esi + 0x16c8]
push edx
mov byte [esp + 0x34], 2
call fcn.005a2afb
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d7657
inc eax
push eax
mov eax, dword [0x687b54]
push ecx
push 1
push 0
push str.VScannerProgram
push eax
call edi
jmp 0x4d7665
mov ecx, dword [0x687b54]
push str.VScannerProgram
push ecx
call ebx
lea edx, [esp + 0x18]
lea ecx, [esi + 0x168c]
push edx
call fcn.005a2afb
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d7696
inc eax
push eax
mov eax, dword [0x687b54]
push ecx
push 1
push 0
push str.VScannerParameters
push eax
call edi
jmp 0x4d76a4
mov ecx, dword [0x687b54]
push str.VScannerParameters
push ecx
call ebx
lea ecx, [esi + 0x1420]
call fcn.004ccd40
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.005a584d
mov eax, dword [esi + 0xd30]
test eax, eax
je 0x4d76f3
lea ecx, [esi + 0xd14]
call fcn.004c3e40
test al, al
je 0x4d77ac
mov eax, dword [esi + 0x19d4]
test eax, eax
je 0x4d76f3
push 0
push 0x13c2
push 0x111
push eax
call ebp
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4d7708
lea ecx, [esi + 0xa8]
call fcn.004cf570
mov eax, dword [esi + 0x19e8]
test eax, eax
je 0x4d771f
lea ecx, [esi + 0x754]
call fcn.004c6bc0
jmp 0x4d772a
lea ecx, [esi + 0xa18]
call fcn.00550130
lea edx, [esp + 0x1c]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x6874e8
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d7784
lea eax, [esp + 0x18]
push eax
call fcn.0058ab83
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push 0x6874e8
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x19dc]
test eax, eax
je 0x4d7797
cmp dword [esi + 0x19e0], 5
jne 0x4d77ac
mov eax, dword [esi + 0x248]
test eax, eax
je 0x4d77ac
lea ecx, [esi + 0x22c]
call fcn.004c5820
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.005a584d
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret