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

Disassembly:
push 0xffffffffffffffff
push 0x658a80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x1c]
call fcn.004024f0
xor ebx, ebx
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0x184]
call fcn.005fae1b
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esi + 0x2ec]
call fcn.004acb10
mov dword [esp + 0x14], ebx
cmp byte [esi + 0x343], bl
je 0x50a0cc
mov dword [esp + 0x14], 1
mov eax, dword [0x75dbe4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push ebx
push str.bUseSocks
push eax
call edi
mov ecx, dword [esi + 0x328]
cmp dword [ecx - 0xc], ebx
je 0x50a115
mov edx, dword [0x75dbe4]
mov eax, ecx
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.SocksHost
push edx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x50a128
mov eax, dword [0x75dbe4]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.SocksHost
push eax
call ebp
mov ecx, dword [esi + 0x32c]
cmp dword [ecx - 0xc], ebx
je 0x50a14e
mov edx, dword [0x75dbe4]
mov eax, ecx
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.SocksPort
push edx
call edi
jmp 0x50a15b
mov eax, dword [0x75dbe4]
push str.SocksPort
push eax
call ebp
mov ecx, dword [esi + 0x330]
cmp dword [ecx - 0xc], ebx
je 0x50a181
mov edx, dword [0x75dbe4]
mov eax, ecx
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.SocksUser
push edx
call edi
jmp 0x50a18e
mov eax, dword [0x75dbe4]
push str.SocksUser
push eax
call ebp
mov eax, dword [esi + 0x334]
cmp dword [eax - 0xc], ebx
je 0x50a1b0
mov ecx, dword [0x75dbe4]
push eax
push str.SocksPass
push ecx
call fcn.005ba800
add esp, 0xc
jmp 0x50a1be
mov edx, dword [0x75dbe4]
push str.SocksPass
push edx
call ebp
mov ecx, dword [0x75dbe4]
push 4
lea eax, [esi + 0x338]
push eax
push 4
push ebx
push str.SocksType
push ecx
call edi
mov ecx, dword [0x75dbe4]
push 4
xor edx, edx
cmp dword [esi + 0x33c], ebx
lea eax, [esp + 0x18]
push eax
push 4
setne dl
push ebx
push str.Socks5ProxyDNS
push ecx
mov dword [esp + 0x2c], edx
call edi
push 0x71f
mov ecx, esi
call fcn.005f5a75
mov edx, dword [eax + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push pe_nt_image_headers32
push edx
call ebp
cmp eax, 1
jne 0x50a22a
mov ecx, esi
call fcn.00509f10
mov ecx, esi
call fcn.00508010
xor eax, eax
cmp byte [esi + 0x340], bl
push 4
setne al
xor ecx, ecx
cmp byte [esi + 0x342], bl
setne cl
xor edx, edx
cmp byte [esi + 0x341], bl
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 4
setne dl
push ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [0x75dbe4]
push str.UseHttpProxy
push ecx
mov dword [esp + 0x3c], edx
call edi
mov eax, dword [0x75dbe4]
push 4
lea edx, [esp + 0x28]
push edx
push 4
push ebx
push str.UseFtpProxy
push eax
call edi
mov edx, dword [0x75dbe4]
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
push ebx
push str.UseHttpsProxy
push edx
call edi
mov eax, dword [esi + 0x300]
cmp dword [eax - 0xc], ebx
je 0x50a2c9
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [0x75dbe4]
push eax
push 1
push ebx
push str.HttpsProxy
push ecx
call edi
jmp 0x50a2db
mov edx, dword [0x75dbe4]
push str.HttpsProxy
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x304]
cmp dword [eax - 0xc], ebx
je 0x50a2ff
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [0x75dbe4]
push eax
push 1
push ebx
push str.HttpsPort
push ecx
call edi
jmp 0x50a311
mov edx, dword [0x75dbe4]
push str.HttpsPort
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x2f8]
cmp dword [eax - 0xc], ebx
je 0x50a335
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [0x75dbe4]
push eax
push 1
push ebx
push str.HttpProxy
push ecx
call edi
jmp 0x50a347
mov edx, dword [0x75dbe4]
push str.HttpProxy
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x2fc]
cmp dword [eax - 0xc], ebx
je 0x50a36b
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [0x75dbe4]
push eax
push 1
push ebx
push str.HttpPort
push ecx
call edi
jmp 0x50a37d
mov edx, dword [0x75dbe4]
push str.HttpPort
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x308]
cmp dword [eax - 0xc], ebx
je 0x50a3a1
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [0x75dbe4]
push eax
push 1
push ebx
push str.FtpProxy
push ecx
call edi
jmp 0x50a3b3
mov edx, dword [0x75dbe4]
push str.FtpProxy
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x30c]
cmp dword [eax - 0xc], ebx
je 0x50a3d7
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [0x75dbe4]
push eax
push 1
push ebx
push str.FtpPort
push ecx
call edi
jmp 0x50a3e9
mov edx, dword [0x75dbe4]
push str.FtpPort
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x318]
cmp dword [eax - 0xc], ebx
je 0x50a40d
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
mov ecx, dword [0x75dbe4]
push eax
push 1
push ebx
push str.HttpsUserName
push ecx
call edi
jmp 0x50a41f
mov edx, dword [0x75dbe4]
push str.HttpsUserName
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x31c]
push 1
push eax
mov eax, dword [0x75dbe4]
push str.HttpsEncPassword
push str.HttpsPasword
push eax
call fcn.005ba700
mov ecx, dword [esi + 0x310]
add esp, 0x14
cmp dword [ecx - 0xc], ebx
je 0x50a466
mov edx, dword [0x75dbe4]
mov eax, ecx
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpUserName
push edx
call edi
jmp 0x50a477
mov eax, dword [0x75dbe4]
push str.HttpUserName
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x314]
mov ecx, dword [0x75dbe4]
push 1
push eax
push str.HttpEncPassword
push str.HttpPasword
push ecx
call fcn.005ba700
mov edx, dword [esi + 0x320]
add esp, 0x14
cmp dword [edx - 0xc], ebx
je 0x50a4be
mov eax, edx
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [0x75dbe4]
push 1
push ebx
push str.FtpUserName
push eax
call edi
jmp 0x50a4d0
mov ecx, dword [0x75dbe4]
push str.FtpUserName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esi + 0x324]
mov edx, dword [0x75dbe4]
push 1
push eax
push str.FtpEncPassword
push str.FtpPasword
push edx
call fcn.005ba700
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.004024f0
mov byte [esp + 0x34], 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x88]
call fcn.005fae1b
mov ecx, dword [esp + 0x18]
push ecx
push 0x678ea8
push 0x75e74c
call fcn.00402f60
mov edx, dword [esi + 0x1fc]
add esp, 0xc
push ebx
push ebx
push pe_nt_image_headers32
push edx
call ebp
test eax, eax
je 0x50a551
mov eax, dword [esp + 0x18]
push eax
mov ecx, 0x75e740
call fcn.004cd260
mov dword [0x75e750], eax
jmp 0x50a557
mov dword [0x75e750], ebx
mov ecx, 0x75e740
call fcn.004cc6a0
mov edi, dword [0x75e774]
push 0x722
mov ecx, esi
call fcn.005f5a75
mov ecx, dword [eax + 0x20]
push ebx
push ebx
push pe_nt_image_headers32
push ecx
call ebp
cmp eax, 1
jne 0x50a5a7
mov dword [0x75e774], eax
cmp dword [0x75e750], ebx
je 0x50a60a
cmp dword [0x75e754], ebx
je 0x50a60a
push ebx
push ebx
push ebx
push ebx
push 1
push 0x4cd8e0
jmp 0x50a61e
push 0x721
mov ecx, esi
call fcn.005f5a75
mov edx, dword [eax + 0x20]
push ebx
push ebx
push pe_nt_image_headers32
push edx
call ebp
cmp eax, 1
jne 0x50a5e1
mov eax, 2
mov dword [0x75e774], eax
cmp edi, eax
je 0x50a58a
push 1
mov ecx, 0x75e770
call fcn.005477c0
jmp 0x50a623
push 0x704
mov ecx, esi
call fcn.005f5a75
mov eax, dword [eax + 0x20]
push ebx
push ebx
push pe_nt_image_headers32
push eax
call ebp
dec eax
neg eax
sbb eax, eax
and eax, 8
add eax, 8
jmp 0x50a585
cmp eax, 4
jne 0x50a623
cmp edi, eax
je 0x50a623
push ebx
push ebx
push ebx
push ebx
push 3
push 0x547590
call fcn.006005d0
mov ecx, dword [esi + 0x2bc]
push ebx
push ebx
push pe_nt_image_headers32
push ecx
call ebp
test eax, eax
setne dl
mov ecx, 0x75e770
mov byte [0x75e77d], dl
call fcn.005462c0
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x18]
call fcn.00402560
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402560
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret