Function at 0x4e78a0
Capabilities:
Access peb ldr_data
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6018a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6c826c]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
xor ebx, ebx
push ecx
lea ecx, [esi + 0x71c]
mov dword [esp + 0x34], ebx
call fcn.005dc57e
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x758]
push edx
call fcn.00488590
mov eax, dword [0x6c826c]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x684]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0xf0
push ecx
mov byte [esp + 0x40], 1
mov dword [esp + 0x20], ebx
call ebp
cmp eax, ebx
je 0x4e7920
mov dword [esp + 0x10], 1
mov eax, dword [0x6cce68]
push edi
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 0x70b
mov ecx, esi
call fcn.005dc5c6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e7970
mov edx, dword [0x6cce68]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksHost
push edx
call edi
jmp 0x4e7981
mov eax, dword [0x6cce68]
push str.SocksHost
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
push ecx
push 0x70c
mov ecx, esi
call fcn.005dc5c6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e79b3
mov edx, dword [0x6cce68]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksPort
push edx
call edi
jmp 0x4e79c4
mov eax, dword [0x6cce68]
push str.SocksPort
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
push ecx
push 0x70d
mov ecx, esi
call fcn.005dc5c6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e79f6
mov edx, dword [0x6cce68]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksUser
push edx
call edi
jmp 0x4e7a07
mov eax, dword [0x6cce68]
push str.SocksUser
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x10]
push ecx
push 0x70e
mov ecx, esi
call fcn.005dc5c6
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x4e7a38
mov edx, dword [0x6cce68]
push eax
push str.SocksPass
push edx
call fcn.00590680
add esp, 0xc
jmp 0x4e7a49
mov eax, dword [0x6cce68]
push str.SocksPass
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x6f4
mov ecx, esi
mov dword [esp + 0x18], 5
call fcn.005de6c8
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0xf0
push ecx
call ebp
cmp eax, 1
jne 0x4e7a77
mov dword [esp + 0x14], 4
mov eax, dword [0x6cce68]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.SocksType
push eax
call edi
mov ecx, esi
call fcn.004e7760
mov ecx, dword [esi + 0x6c0]
push ebx
push ebx
push 0xf0
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
call ebp
cmp eax, ebx
je 0x4e7aea
mov al, byte [esi + 0x798]
mov cl, byte [esi + 0x799]
xor edx, edx
cmp al, bl
setne dl
xor eax, eax
cmp cl, bl
setne al
mov dword [esp + 0x24], eax
mov al, byte [esi + 0x79a]
xor ecx, ecx
cmp al, bl
setne cl
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
jmp 0x4e7af1
mov ecx, esi
call fcn.004e8960
mov eax, dword [0x6cce68]
lea edx, [esp + 0x20]
push 4
push edx
push 4
push ebx
push str.UseHttpProxy
push eax
call edi
mov edx, dword [0x6cce68]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push ebx
push str.UseFtpProxy
push edx
call edi
mov ecx, dword [0x6cce68]
lea eax, [esp + 0x28]
push 4
push eax
push 4
push ebx
push str.UseHttpsProxy
push ecx
call edi
mov eax, dword [esi + 0x770]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7b5b
mov edx, dword [0x6cce68]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsProxy
push edx
call edi
jmp 0x4e7b6c
mov eax, dword [0x6cce68]
push str.HttpsProxy
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x774]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7b8f
inc ecx
push ecx
mov ecx, dword [0x6cce68]
push eax
push 1
push ebx
push str.HttpsPort
push ecx
call edi
jmp 0x4e7ba1
mov edx, dword [0x6cce68]
push str.HttpsPort
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x768]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7bc3
inc ecx
push ecx
push eax
mov eax, dword [0x6cce68]
push 1
push ebx
push str.HttpProxy
push eax
call edi
jmp 0x4e7bd5
mov ecx, dword [0x6cce68]
push str.HttpProxy
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x76c]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7bf8
mov edx, dword [0x6cce68]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpPort
push edx
call edi
jmp 0x4e7c09
mov eax, dword [0x6cce68]
push str.HttpPort
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x778]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7c2c
inc ecx
push ecx
mov ecx, dword [0x6cce68]
push eax
push 1
push ebx
push str.FtpProxy
push ecx
call edi
jmp 0x4e7c3e
mov edx, dword [0x6cce68]
push str.FtpProxy
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x77c]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7c60
inc ecx
push ecx
push eax
mov eax, dword [0x6cce68]
push 1
push ebx
push str.FtpPort
push eax
call edi
jmp 0x4e7c72
mov ecx, dword [0x6cce68]
push str.FtpPort
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x788]
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7c95
mov edx, dword [0x6cce68]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsUserName
push edx
call edi
jmp 0x4e7ca6
mov eax, dword [0x6cce68]
push str.HttpsUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x78c]
mov ecx, dword [0x6cce68]
push 1
push eax
push str.HttpsEncPassword
push str.HttpsPasword
push ecx
call fcn.00590540
mov eax, dword [esi + 0x780]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7ceb
mov edx, dword [0x6cce68]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpUserName
push edx
call edi
jmp 0x4e7cfc
mov eax, dword [0x6cce68]
push str.HttpUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x784]
mov ecx, dword [0x6cce68]
push 1
push eax
push str.HttpEncPassword
push str.HttpPasword
push ecx
call fcn.00590540
mov eax, dword [esi + 0x790]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7d41
mov edx, dword [0x6cce68]
inc ecx
push ecx
push eax
push 1
push ebx
push str.FtpUserName
push edx
call edi
jmp 0x4e7d52
mov eax, dword [0x6cce68]
push str.FtpUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x794]
mov ecx, dword [0x6cce68]
push 1
push eax
push str.FtpEncPassword
push str.FtpPasword
push ecx
call fcn.00590540
mov edx, dword [esi + 0xa8]
add esp, 0x14
push ebx
push ebx
push 0xf0
push edx
call ebp
cmp eax, ebx
pop edi
je 0x4e7dcb
mov eax, dword [0x6c826c]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
push ecx
lea ecx, [esi + 0x104]
call fcn.005dc57e
mov edx, dword [esp + 0x14]
mov ecx, 0x6cccb8
push edx
call fcn.004a8180
lea ecx, [esp + 0x14]
mov dword [0x6cccc4], eax
mov byte [esp + 0x30], 1
call fcn.005df266
jmp 0x4e7dd1
mov dword [0x6cccc4], ebx
mov ecx, 0x6cccb8
call fcn.004a80f0
cmp dword [0x6cccc4], ebx
je 0x4e7dfb
cmp dword [0x6cccc8], ebx
je 0x4e7dfb
push ebx
push ebx
push ebx
push ebx
push 1
push 0x4a7a80
call fcn.005df864
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.005df266
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.005df266
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret