Function at 0x50f6e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64a050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x6f7b78]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
lea ecx, [esi + 0x140]
mov dword [esp + 0x34], ebx
call fcn.0062451a
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x27c]
push edx
call fcn.004a74b0
mov al, byte [esi + 0x2d3]
mov dword [esp + 0x10], ebx
cmp al, bl
je 0x50f743
mov dword [esp + 0x10], 1
mov ecx, dword [0x6fcafc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.bUseSocks
push ecx
call edi
mov eax, dword [esi + 0x2b8]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50f78a
mov edx, dword [0x6fcafc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.SocksHost
push edx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x50f79d
mov eax, dword [0x6fcafc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.SocksHost
push eax
call ebp
mov eax, dword [esi + 0x2bc]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50f7c0
inc ecx
push ecx
mov ecx, dword [0x6fcafc]
push eax
push 1
push ebx
push str.SocksPort
push ecx
call edi
jmp 0x50f7ce
mov edx, dword [0x6fcafc]
push str.SocksPort
push edx
call ebp
mov eax, dword [esi + 0x2c0]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50f7f0
inc ecx
push ecx
push eax
mov eax, dword [0x6fcafc]
push 1
push ebx
push str.SocksUser
push eax
call edi
jmp 0x50f7fe
mov ecx, dword [0x6fcafc]
push str.SocksUser
push ecx
call ebp
mov eax, dword [esi + 0x2c4]
cmp dword [eax - 8], ebx
je 0x50f820
mov edx, dword [0x6fcafc]
push eax
push str.SocksPass
push edx
call fcn.005d0db0
add esp, 0xc
jmp 0x50f82d
mov eax, dword [0x6fcafc]
push str.SocksPass
push eax
call ebp
mov edx, dword [0x6fcafc]
lea ecx, [esi + 0x2c8]
push 4
push ecx
push 4
push ebx
push str.SocksType
push edx
call edi
mov edx, dword [esi + 0x2cc]
lea ecx, [esp + 0x10]
push 4
xor eax, eax
push ecx
cmp edx, ebx
mov edx, dword [0x6fcafc]
push 4
push ebx
push str.Socks5ProxyDNS
setne al
push edx
mov dword [esp + 0x28], eax
call edi
push 0x71f
mov ecx, esi
call fcn.0062325c
mov eax, dword [eax + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0xf0
push eax
call ebp
cmp eax, 1
jne 0x50f89b
mov ecx, esi
call fcn.0050f590
mov ecx, esi
call fcn.00510980
mov dl, byte [esi + 0x2d0]
mov al, byte [esi + 0x2d2]
xor ecx, ecx
cmp dl, bl
setne cl
xor edx, edx
cmp al, bl
mov dword [esp + 0x1c], ecx
mov cl, byte [esi + 0x2d1]
setne dl
xor eax, eax
cmp cl, bl
lea ecx, [esp + 0x1c]
push 4
push ecx
mov dword [esp + 0x2c], edx
mov edx, dword [0x6fcafc]
push 4
push ebx
push str.UseHttpProxy
setne al
push edx
mov dword [esp + 0x38], eax
call edi
mov ecx, dword [0x6fcafc]
lea eax, [esp + 0x20]
push 4
push eax
push 4
push ebx
push str.UseFtpProxy
push ecx
call edi
mov eax, dword [0x6fcafc]
lea edx, [esp + 0x24]
push 4
push edx
push 4
push ebx
push str.UseHttpsProxy
push eax
call edi
mov eax, dword [esi + 0x290]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50f93f
inc ecx
push ecx
mov ecx, dword [0x6fcafc]
push eax
push 1
push ebx
push str.HttpsProxy
push ecx
call edi
jmp 0x50f951
mov edx, dword [0x6fcafc]
push str.HttpsProxy
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x294]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50f973
inc ecx
push ecx
push eax
mov eax, dword [0x6fcafc]
push 1
push ebx
push str.HttpsPort
push eax
call edi
jmp 0x50f985
mov ecx, dword [0x6fcafc]
push str.HttpsPort
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x288]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50f9a8
mov edx, dword [0x6fcafc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpProxy
push edx
call edi
jmp 0x50f9b9
mov eax, dword [0x6fcafc]
push str.HttpProxy
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x28c]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50f9dc
inc ecx
push ecx
mov ecx, dword [0x6fcafc]
push eax
push 1
push ebx
push str.HttpPort
push ecx
call edi
jmp 0x50f9ee
mov edx, dword [0x6fcafc]
push str.HttpPort
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x298]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50fa10
inc ecx
push ecx
push eax
mov eax, dword [0x6fcafc]
push 1
push ebx
push str.FtpProxy
push eax
call edi
jmp 0x50fa22
mov ecx, dword [0x6fcafc]
push str.FtpProxy
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x29c]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50fa45
mov edx, dword [0x6fcafc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.FtpPort
push edx
call edi
jmp 0x50fa56
mov eax, dword [0x6fcafc]
push str.FtpPort
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x2a8]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50fa79
inc ecx
push ecx
mov ecx, dword [0x6fcafc]
push eax
push 1
push ebx
push str.HttpsUserName
push ecx
call edi
jmp 0x50fa8b
mov edx, dword [0x6fcafc]
push str.HttpsUserName
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x2ac]
push 1
push eax
mov eax, dword [0x6fcafc]
push str.HttpsEncPassword
push str.HttpsPasword
push eax
call fcn.005d0c70
mov eax, dword [esi + 0x2a0]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50facf
inc ecx
push ecx
mov ecx, dword [0x6fcafc]
push eax
push 1
push ebx
push str.HttpUserName
push ecx
call edi
jmp 0x50fae1
mov edx, dword [0x6fcafc]
push str.HttpUserName
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x2a4]
push 1
push eax
mov eax, dword [0x6fcafc]
push str.HttpEncPassword
push str.HttpPasword
push eax
call fcn.005d0c70
mov eax, dword [esi + 0x2b0]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x50fb25
inc ecx
push ecx
mov ecx, dword [0x6fcafc]
push eax
push 1
push ebx
push str.FtpUserName
push ecx
call edi
jmp 0x50fb37
mov edx, dword [0x6fcafc]
push str.FtpUserName
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x2b4]
push 1
push eax
mov eax, dword [0x6fcafc]
push str.FtpEncPassword
push str.FtpPasword
push eax
call fcn.005d0c70
mov ecx, dword [0x6f7b78]
add esp, 0x14
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x14]
lea ecx, [esi + 0x8c]
push edx
mov byte [esp + 0x34], 1
call fcn.0062451a
mov eax, dword [esp + 0x14]
push eax
push 0x6c910c
push 0x6fd084
call fcn.0061fae1
mov ecx, dword [esi + 0x1a0]
add esp, 0xc
push ebx
push ebx
push 0xf0
push ecx
call ebp
cmp eax, ebx
je 0x50fbb8
mov edx, dword [esp + 0x14]
mov ecx, 0x6fd078
push edx
call fcn.004cb040
mov dword [0x6fd088], eax
jmp 0x50fbbe
mov dword [0x6fd088], ebx
mov ecx, 0x6fd078
call fcn.004cafb0
mov edi, dword [0x6fd014]
push 0x722
mov ecx, esi
call fcn.0062325c
mov eax, dword [eax + 0x1c]
push ebx
push ebx
push 0xf0
push eax
call ebp
cmp eax, 1
jne 0x50fc0e
mov dword [0x6fd014], eax
cmp dword [0x6fd088], ebx
je 0x50fc71
cmp dword [0x6fd08c], ebx
je 0x50fc71
push ebx
push ebx
push ebx
push ebx
push 1
push 0x4ca6f0
jmp 0x50fc85
push 0x721
mov ecx, esi
call fcn.0062325c
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0xf0
push ecx
call ebp
cmp eax, 1
jne 0x50fc48
mov eax, 2
cmp edi, eax
mov dword [0x6fd014], eax
je 0x50fbf1
push 1
mov ecx, 0x6fd010
call fcn.0054f790
jmp 0x50fc8a
push 0x704
mov ecx, esi
call fcn.0062325c
mov edx, dword [eax + 0x1c]
push ebx
push ebx
push 0xf0
push edx
call ebp
dec eax
neg eax
sbb eax, eax
and eax, 8
add eax, 8
jmp 0x50fbec
cmp eax, 4
jne 0x50fc8a
cmp edi, eax
je 0x50fc8a
push ebx
push ebx
push ebx
push ebx
push 3
push 0x54eea0
call fcn.00626cae
mov ecx, 0x6fd010
call fcn.0054f1d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call fcn.00622d8a
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00622d8a
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret