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

Disassembly:
push 0xffffffffffffffff
push 0x603848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6ca27c]
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.005de49e
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x758]
push edx
call fcn.0048a110
mov eax, dword [0x6ca27c]
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 0x4e9800
mov dword [esp + 0x10], 1
mov eax, dword [0x6cee7c]
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.005de4e6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e9850
mov edx, dword [0x6cee7c]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksHost
push edx
call edi
jmp 0x4e9861
mov eax, dword [0x6cee7c]
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.005de4e6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e9893
mov edx, dword [0x6cee7c]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksPort
push edx
call edi
jmp 0x4e98a4
mov eax, dword [0x6cee7c]
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.005de4e6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp eax, ebx
je 0x4e98d6
mov edx, dword [0x6cee7c]
inc eax
push eax
push ecx
push 1
push ebx
push str.SocksUser
push edx
call edi
jmp 0x4e98e7
mov eax, dword [0x6cee7c]
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.005de4e6
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x4e9918
mov edx, dword [0x6cee7c]
push eax
push str.SocksPass
push edx
call fcn.005925b0
add esp, 0xc
jmp 0x4e9929
mov eax, dword [0x6cee7c]
push str.SocksPass
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x6f4
mov ecx, esi
mov dword [esp + 0x18], 5
call fcn.005e05ee
mov ecx, dword [eax + 0x1c]
push ebx
push ebx
push 0xf0
push ecx
call ebp
cmp eax, 1
jne 0x4e9957
mov dword [esp + 0x14], 4
mov eax, dword [0x6cee7c]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.SocksType
push eax
call edi
mov ecx, esi
call fcn.004e9640
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 0x4e99ca
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 0x4e99d1
mov ecx, esi
call fcn.004ea840
mov eax, dword [0x6cee7c]
lea edx, [esp + 0x20]
push 4
push edx
push 4
push ebx
push str.UseHttpProxy
push eax
call edi
mov edx, dword [0x6cee7c]
lea ecx, [esp + 0x24]
push 4
push ecx
push 4
push ebx
push str.UseFtpProxy
push edx
call edi
mov ecx, dword [0x6cee7c]
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 0x4e9a3b
mov edx, dword [0x6cee7c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsProxy
push edx
call edi
jmp 0x4e9a4c
mov eax, dword [0x6cee7c]
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 0x4e9a6f
inc ecx
push ecx
mov ecx, dword [0x6cee7c]
push eax
push 1
push ebx
push str.HttpsPort
push ecx
call edi
jmp 0x4e9a81
mov edx, dword [0x6cee7c]
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 0x4e9aa3
inc ecx
push ecx
push eax
mov eax, dword [0x6cee7c]
push 1
push ebx
push str.HttpProxy
push eax
call edi
jmp 0x4e9ab5
mov ecx, dword [0x6cee7c]
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 0x4e9ad8
mov edx, dword [0x6cee7c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpPort
push edx
call edi
jmp 0x4e9ae9
mov eax, dword [0x6cee7c]
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 0x4e9b0c
inc ecx
push ecx
mov ecx, dword [0x6cee7c]
push eax
push 1
push ebx
push str.FtpProxy
push ecx
call edi
jmp 0x4e9b1e
mov edx, dword [0x6cee7c]
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 0x4e9b40
inc ecx
push ecx
push eax
mov eax, dword [0x6cee7c]
push 1
push ebx
push str.FtpPort
push eax
call edi
jmp 0x4e9b52
mov ecx, dword [0x6cee7c]
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 0x4e9b75
mov edx, dword [0x6cee7c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpsUserName
push edx
call edi
jmp 0x4e9b86
mov eax, dword [0x6cee7c]
push str.HttpsUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x78c]
mov ecx, dword [0x6cee7c]
push 1
push eax
push str.HttpsEncPassword
push str.HttpsPasword
push ecx
call fcn.00592470
mov eax, dword [esi + 0x780]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e9bcb
mov edx, dword [0x6cee7c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpUserName
push edx
call edi
jmp 0x4e9bdc
mov eax, dword [0x6cee7c]
push str.HttpUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x784]
mov ecx, dword [0x6cee7c]
push 1
push eax
push str.HttpEncPassword
push str.HttpPasword
push ecx
call fcn.00592470
mov eax, dword [esi + 0x790]
add esp, 0x14
mov ecx, dword [eax - 8]
cmp ecx, ebx
je 0x4e9c21
mov edx, dword [0x6cee7c]
inc ecx
push ecx
push eax
push 1
push ebx
push str.FtpUserName
push edx
call edi
jmp 0x4e9c32
mov eax, dword [0x6cee7c]
push str.FtpUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x794]
mov ecx, dword [0x6cee7c]
push 1
push eax
push str.FtpEncPassword
push str.FtpPasword
push ecx
call fcn.00592470
mov edx, dword [esi + 0xa8]
add esp, 0x14
push ebx
push ebx
push 0xf0
push edx
call ebp
cmp eax, ebx
pop edi
je 0x4e9cab
mov eax, dword [0x6ca27c]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
push ecx
lea ecx, [esi + 0x104]
call fcn.005de49e
mov edx, dword [esp + 0x14]
mov ecx, 0x6cecc8
push edx
call fcn.004a9f00
lea ecx, [esp + 0x14]
mov dword [0x6cecd4], eax
mov byte [esp + 0x30], 1
call fcn.005e118c
jmp 0x4e9cb1
mov dword [0x6cecd4], ebx
mov ecx, 0x6cecc8
call fcn.004a9e70
cmp dword [0x6cecd4], ebx
je 0x4e9cdb
cmp dword [0x6cecd8], ebx
je 0x4e9cdb
push ebx
push ebx
push ebx
push ebx
push 1
push 0x4a9800
call fcn.005e178a
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.005e118c
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret