Function at 0x503fe0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64fe8a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x504059
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push ebx
push str.ProxyServer
push edx
call ebp
test eax, eax
je 0x504060
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x50434d
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402850
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x24]
push ebx
push ebx
push str.ProxyServer
push eax
call ebp
test eax, eax
je 0x5040b6
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
xor al, al
jmp 0x50434d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
or edi, 0xffffffff
cmp eax, ebx
jle 0x504219
push 0x3d
push ecx
call fcn.0061e6a3
add esp, 8
cmp eax, ebx
je 0x504219
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, edi
je 0x504219
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x50410c
cmp dword [ecx - 0xc], ebx
jl 0x50410c
push eax
push ecx
call fcn.006182a6
add esp, 8
cmp eax, ebx
je 0x50410c
sub eax, dword [esp + 0x14]
cmp eax, edi
jne 0x504120
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x14]
call fcn.00402570
xor al, al
jmp 0x50434d
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00502dc0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jg 0x504138
mov eax, edi
jmp 0x50414f
push 0x3d
push eax
call fcn.0061e6a3
add esp, 8
cmp eax, ebx
jne 0x50414b
mov eax, edi
jmp 0x50414f
sub eax, dword [esp + 0x14]
inc eax
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00502dc0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jle 0x50410c
push 0x3a
push eax
call fcn.0061e6a3
add esp, 8
cmp eax, ebx
je 0x50410c
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
je 0x50410c
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.004f9a80
mov byte [esp + 0x2c], 1
mov ecx, dword [esp + 0x38]
push eax
call fcn.004059c0
mov byte [esp + 0x2c], bl
lea ecx, [esp + 0x34]
call fcn.00402570
inc esi
push esi
push ebx
lea ecx, [esp + 0x1c]
call fcn.00502dc0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jle 0x5041f2
push 0x3b
push eax
call fcn.0061e6a3
add esp, 8
cmp eax, ebx
je 0x5041f2
sub eax, dword [esp + 0x14]
cmp eax, edi
je 0x5041f2
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.004f9a80
mov byte [esp + 0x2c], 2
mov dword [esp + 0x18], 1
jmp 0x5041f6
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004059c0
mov dword [esp + 0x2c], ebx
test byte [esp + 0x18], 1
je 0x5042ff
and dword [esp + 0x18], 0xfffffffe
jmp 0x5042f6
mov ecx, dword [esp + 0x34]
push str.socks
push ecx
call fcn.00619b9e
add esp, 8
test eax, eax
je 0x50410c
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jle 0x50410c
push 0x3a
push eax
call fcn.0061e6a3
add esp, 8
cmp eax, ebx
je 0x50410c
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
je 0x50410c
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.004f9a80
mov byte [esp + 0x2c], 3
mov ecx, dword [esp + 0x38]
push eax
call fcn.004059c0
mov byte [esp + 0x2c], bl
lea ecx, [esp + 0x34]
call fcn.00402570
inc esi
push esi
push ebx
lea ecx, [esp + 0x1c]
call fcn.00502dc0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x5042d8
push 0x3b
push ecx
call fcn.0061e6a3
add esp, 8
cmp eax, ebx
je 0x5042d8
sub eax, dword [esp + 0x14]
cmp eax, edi
je 0x5042d8
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.004f9a80
mov byte [esp + 0x2c], 4
mov dword [esp + 0x18], 2
jmp 0x5042dc
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004059c0
mov dword [esp + 0x2c], ebx
test byte [esp + 0x18], 2
je 0x5042ff
and dword [esp + 0x18], 0xfffffffd
lea ecx, [esp + 0x34]
call fcn.00402570
mov esi, dword [esp + 0x40]
cmp esi, ebx
je 0x504333
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push str.ProxyEnable
push eax
mov dword [esi], ebx
mov dword [esp + 0x38], 4
call ebp
test eax, eax
jne 0x504333
mov ecx, dword [esp + 0x34]
mov dword [esi], ecx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x14]
call fcn.00402570
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10