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

Disassembly:
push 0xffffffffffffffff
push 0x55fa08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x5c2a74]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov byte [esp + 0x1c], 1
call fcn.00497ff0
test eax, eax
jne 0x497d6e
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], al
call fcn.005421be
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005421be
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
push edi
push 0x45e
mov ecx, esi
call fcn.00541ad1
mov eax, dword [eax + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push eax
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
cmp eax, 1
mov eax, dword [0x5c74b0]
push 4
push 0
push str.UseHttpsProxy
sete cl
push eax
mov dword [esp + 0x28], ecx
call edi
lea ecx, [esp + 0xc]
push ecx
push 0x45f
mov ecx, esi
call fcn.0053f4b7
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x497dee
mov edx, dword [0x5c74b0]
inc eax
push eax
push ecx
push 1
push 0
push str.HttpsProxy
push edx
call edi
jmp 0x497dff
mov eax, dword [0x5c74b0]
push str.HttpsProxy
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0xc]
push ecx
push 0x461
mov ecx, esi
call fcn.0053f4b7
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x497e30
mov edx, dword [0x5c74b0]
inc eax
push eax
push ecx
push 1
push 0
push str.HttpsPort
push edx
call edi
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x46a
call fcn.0053f4b7
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x497e63
inc eax
push eax
push ecx
mov ecx, dword [0x5c74b0]
push 1
push 0
push str.HttpsUserName
push ecx
call edi
jmp 0x497e75
mov edx, dword [0x5c74b0]
push str.HttpsUserName
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0x46b
call fcn.0053f4b7
lea ecx, [esp + 0x14]
push ecx
push 0x41c
mov ecx, esi
call fcn.0053f4b7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push edx
push eax
call fcn.00526f6c
add esp, 8
test eax, eax
jne 0x497ee1
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
je 0x497ecf
inc eax
push eax
push ecx
mov ecx, dword [0x5c74b0]
push 1
push 0
push str.HttpsPasword
push ecx
call edi
jmp 0x497ee1
mov edx, dword [0x5c74b0]
push str.HttpsPasword
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x44e
mov ecx, esi
call fcn.00541ad1
mov eax, dword [eax + 0x1c]
push 0
push 0
push 0xf0
push eax
call ebp
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
cmp eax, 1
mov eax, dword [0x5c74b0]
push 4
push 0
sete cl
push str.UseHttpProxy
push eax
mov dword [esp + 0x28], ecx
call edi
push 0x454
mov ecx, esi
call fcn.00541ad1
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0xf0
push ecx
call ebp
mov ecx, dword [0x5c74b0]
xor edx, edx
cmp eax, 1
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
sete dl
push str.UseFtpProxy
push ecx
mov dword [esp + 0x28], edx
call edi
mov edx, dword [0x5c2a74]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x18]
lea ecx, [esi + 0xc8]
push eax
mov byte [esp + 0x28], 2
call fcn.0053f46f
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esi + 0x1b8]
call fcn.00450e60
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call fcn.005421be
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.005421be
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x1c]
pop edi
pop ebp
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret