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

Disassembly:
push 0xffffffffffffffff
push 0x601ba8
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.005dc86e
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x758]
push edx
call fcn.004883b0
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 0x4e7800
mov dword [esp + 0x10], 1
mov eax, dword [0x6cce6c]
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.005dc8b6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e7850
mov edx, dword [0x6cce6c]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksHost
push edx
call edi
jmp 0x4e7861
mov eax, dword [0x6cce6c]
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.005dc8b6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e7893
mov edx, dword [0x6cce6c]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksPort
push edx
call edi
jmp 0x4e78a4
mov eax, dword [0x6cce6c]
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.005dc8b6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e78d6
mov edx, dword [0x6cce6c]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksUser
push edx
call edi
jmp 0x4e78e7
mov eax, dword [0x6cce6c]
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.005dc8b6
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x4e7918
mov edx, dword [0x6cce6c]
push eax
push str.SocksPass
push edx
call fcn.00590970
add esp, 0xc
jmp 0x4e7929
mov eax, dword [0x6cce6c]
push str.SocksPass
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x6f4
mov ecx, esi
mov dword [esp + 0x18], 5
call fcn.005de9b8
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0xf0
push ecx
call ebp
cmp eax, 1
jne 0x4e7957
mov dword [esp + 0x14], 4
mov eax, dword [0x6cce6c]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.SocksType
push eax
call edi
mov ecx, esi
call fcn.004e7640
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 0x4e79ca
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 0x4e79d1
mov ecx, esi
call fcn.004e8840
mov eax, dword [0x6cce6c]
lea edx, [esp + 0x20]
push 4
push edx
push 4
push ebx
push str.UseHttpProxy
push eax
call edi
mov edx, dword [0x6cce6c]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push ebx
push str.UseFtpProxy
push edx
call edi
mov ecx, dword [0x6cce6c]
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 0x4e7a3b
mov edx, dword [0x6cce6c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsProxy
push edx
call edi
jmp 0x4e7a4c
mov eax, dword [0x6cce6c]
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 0x4e7a6f
inc ecx
push ecx
mov ecx, dword [0x6cce6c]
push eax
push 1
push ebx
push str.HttpsPort
push ecx
call edi
jmp 0x4e7a81
mov edx, dword [0x6cce6c]
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 0x4e7aa3
inc ecx
push ecx
push eax
mov eax, dword [0x6cce6c]
push 1
push ebx
push str.HttpProxy
push eax
call edi
jmp 0x4e7ab5
mov ecx, dword [0x6cce6c]
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 0x4e7ad8
mov edx, dword [0x6cce6c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpPort
push edx
call edi
jmp 0x4e7ae9
mov eax, dword [0x6cce6c]
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 0x4e7b0c
inc ecx
push ecx
mov ecx, dword [0x6cce6c]
push eax
push 1
push ebx
push str.FtpProxy
push ecx
call edi
jmp 0x4e7b1e
mov edx, dword [0x6cce6c]
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 0x4e7b40
inc ecx
push ecx
push eax
mov eax, dword [0x6cce6c]
push 1
push ebx
push str.FtpPort
push eax
call edi
jmp 0x4e7b52
mov ecx, dword [0x6cce6c]
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 0x4e7b75
mov edx, dword [0x6cce6c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsUserName
push edx
call edi
jmp 0x4e7b86
mov eax, dword [0x6cce6c]
push str.HttpsUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x78c]
mov ecx, dword [0x6cce6c]
push 1
push eax
push str.HttpsEncPassword
push str.HttpsPasword
push ecx
call fcn.00590830
mov eax, dword [esi + 0x780]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7bcb
mov edx, dword [0x6cce6c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpUserName
push edx
call edi
jmp 0x4e7bdc
mov eax, dword [0x6cce6c]
push str.HttpUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x784]
mov ecx, dword [0x6cce6c]
push 1
push eax
push str.HttpEncPassword
push str.HttpPasword
push ecx
call fcn.00590830
mov eax, dword [esi + 0x790]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e7c21
mov edx, dword [0x6cce6c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.FtpUserName
push edx
call edi
jmp 0x4e7c32
mov eax, dword [0x6cce6c]
push str.FtpUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x794]
mov ecx, dword [0x6cce6c]
push 1
push eax
push str.FtpEncPassword
push str.FtpPasword
push ecx
call fcn.00590830
mov edx, dword [esi + 0xa8]
add esp, 0x14
push ebx
push ebx
push 0xf0
push edx
call ebp
cmp eax, ebx
pop edi
je 0x4e7cab
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.005dc86e
mov edx, dword [esp + 0x14]
mov ecx, 0x6cccb8
push edx
call fcn.004a81b0
lea ecx, [esp + 0x14]
mov dword [0x6cccc4], eax
mov byte [esp + 0x30], 1
call fcn.005df556
jmp 0x4e7cb1
mov dword [0x6cccc4], ebx
mov ecx, 0x6cccb8
call fcn.004a8120
cmp dword [0x6cccc4], ebx
je 0x4e7cdb
cmp dword [0x6cccc8], ebx
je 0x4e7cdb
push ebx
push ebx
push ebx
push ebx
push 1
push 0x4a7ab0
call fcn.005dfb54
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.005df556
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.005df556
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret