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

Disassembly:
push 0xffffffffffffffff
push 0x5ce930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x68d01c]
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 + 0x668]
mov dword [esp + 0x34], ebx
call fcn.005aaefb
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x6a4]
push edx
call fcn.00474e40
mov eax, dword [0x68d01c]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x5d0]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0xf0
push ecx
mov byte [esp + 0x40], 1
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
je 0x4cd861
mov dword [esp + 0x14], 1
mov eax, dword [0x691b84]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.bUseSocks
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push 0x453
mov ecx, esi
call fcn.005aaf43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4cd8b0
mov edx, dword [0x691b84]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksHost
push edx
call edi
jmp 0x4cd8c1
mov eax, dword [0x691b84]
push str.SocksHost
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
push ecx
push 0x454
mov ecx, esi
call fcn.005aaf43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4cd8f3
mov edx, dword [0x691b84]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksPort
push edx
call edi
jmp 0x4cd904
mov eax, dword [0x691b84]
push str.SocksPort
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
push ecx
push 0x455
mov ecx, esi
call fcn.005aaf43
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4cd936
mov edx, dword [0x691b84]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksUser
push edx
call edi
jmp 0x4cd947
mov eax, dword [0x691b84]
push str.SocksUser
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
push ecx
push 0x456
mov ecx, esi
call fcn.005aaf43
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x4cd978
mov edx, dword [0x691b84]
push eax
push str.SocksPass
push edx
call fcn.00562340
add esp, 0xc
jmp 0x4cd989
mov eax, dword [0x691b84]
push str.SocksPass
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x6f4
mov ecx, esi
mov dword [esp + 0x18], 5
call fcn.005ad04c
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0xf0
push ecx
call ebp
cmp eax, 1
jne 0x4cd9b7
mov dword [esp + 0x14], 4
mov eax, dword [0x691b84]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.SocksType
push eax
call edi
mov ecx, esi
call fcn.004cd6a0
mov ecx, dword [esi + 0x60c]
push ebx
push ebx
push 0xf0
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call ebp
cmp eax, ebx
je 0x4cda28
mov al, byte [esi + 0x6e4]
mov cl, byte [esi + 0x6e5]
xor edx, edx
cmp al, bl
setne dl
xor eax, eax
cmp cl, bl
setne al
mov dword [esp + 0x20], eax
mov al, byte [esi + 0x6e6]
xor ecx, ecx
cmp al, bl
setne cl
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
mov eax, dword [0x691b84]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push ebx
push str.UseHttpProxy
push eax
call edi
mov edx, dword [0x691b84]
lea ecx, [esp + 0x20]
push 4
push ecx
push 4
push ebx
push str.UseFtpProxy
push edx
call edi
mov ecx, dword [0x691b84]
lea eax, [esp + 0x24]
push 4
push eax
push 4
push ebx
push str.UseHttpsProxy
push ecx
call edi
mov eax, dword [esi + 0x6bc]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cda98
mov edx, dword [0x691b84]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsProxy
push edx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4cdaab
mov eax, dword [0x691b84]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.HttpsProxy
push eax
call ebp
mov eax, dword [esi + 0x6c0]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdace
inc ecx
push ecx
mov ecx, dword [0x691b84]
push eax
push 1
push ebx
push str.HttpsPort
push ecx
call edi
jmp 0x4cdadc
mov edx, dword [0x691b84]
push str.HttpsPort
push edx
call ebp
mov eax, dword [esi + 0x6b4]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdafe
inc ecx
push ecx
push eax
mov eax, dword [0x691b84]
push 1
push ebx
push str.HttpProxy
push eax
call edi
jmp 0x4cdb0c
mov ecx, dword [0x691b84]
push str.HttpProxy
push ecx
call ebp
mov eax, dword [esi + 0x6b8]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdb2f
mov edx, dword [0x691b84]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpPort
push edx
call edi
jmp 0x4cdb3c
mov eax, dword [0x691b84]
push str.HttpPort
push eax
call ebp
mov eax, dword [esi + 0x6c4]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdb5f
inc ecx
push ecx
mov ecx, dword [0x691b84]
push eax
push 1
push ebx
push str.FtpProxy
push ecx
call edi
jmp 0x4cdb6d
mov edx, dword [0x691b84]
push str.FtpProxy
push edx
call ebp
mov eax, dword [esi + 0x6c8]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdb8f
inc ecx
push ecx
push eax
mov eax, dword [0x691b84]
push 1
push ebx
push str.FtpPort
push eax
call edi
jmp 0x4cdb9d
mov ecx, dword [0x691b84]
push str.FtpPort
push ecx
call ebp
mov eax, dword [esi + 0x6d4]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdbc0
mov edx, dword [0x691b84]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsUserName
push edx
call edi
jmp 0x4cdbcd
mov eax, dword [0x691b84]
push str.HttpsUserName
push eax
call ebp
mov eax, dword [esi + 0x6d8]
mov ecx, dword [0x691b84]
push 1
push eax
push str.HttpsEncPassword
push str.HttpsPasword
push ecx
call fcn.00562200
mov eax, dword [esi + 0x6cc]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdc12
mov edx, dword [0x691b84]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpUserName
push edx
call edi
jmp 0x4cdc1f
mov eax, dword [0x691b84]
push str.HttpUserName
push eax
call ebp
mov eax, dword [esi + 0x6d0]
mov ecx, dword [0x691b84]
push 1
push eax
push str.HttpEncPassword
push str.HttpPasword
push ecx
call fcn.00562200
mov eax, dword [esi + 0x6dc]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4cdc64
mov edx, dword [0x691b84]
inc ecx
push ecx
push eax
push 1
push ebx
push str.FtpUserName
push edx
call edi
jmp 0x4cdc71
mov eax, dword [0x691b84]
push str.FtpUserName
push eax
call ebp
mov esi, dword [esi + 0x6e0]
mov ecx, dword [0x691b84]
push 1
push esi
push str.FtpEncPassword
push str.FtpPasword
push ecx
call fcn.00562200
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.005adc4d
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.005adc4d
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