Function at 0x52d7e0
Capabilities:
Get proxy

Disassembly:
push 0xffffffffffffffff
push 0x5799c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x5afd70
push SysReAllocStringLen
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x52d872
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea esi, [esp + 0x20]
mov edi, 0x5bea7c
call fcn.0052d780
mov ebx, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x52d872
cmp dword [esp + 0x1c], 4
jne 0x52d87a
cmp dword [ebx], 0
je 0x52d87a
mov edx, dword [esp + 0x38]
mov dword [edx], 1
jmp 0x52d87a
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x52d88d
push ebx
call fcn.005308f6
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x52d8a7
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push 0x5afd70
push SysReAllocStringLen
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x52da73
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
lea esi, [esp + 0x20]
mov edi, str.ProxyServer
call fcn.0052d780
add esp, 4
test eax, eax
je 0x52da6f
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x52da6f
mov ebx, dword [esp + 0x14]
shr eax, 1
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.004121c0
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jl 0x52da73
push 0x5b62e4
push ebp
call fcn.00552eeb
add esp, 8
test eax, eax
je 0x52da05
sub eax, ebp
sar eax, 1
mov esi, eax
js 0x52da05
cmp esi, dword [ebp - 0xc]
jg 0x52da73
lea eax, [ebp + esi*2]
push 0x5984c8
push eax
call fcn.00552eeb
add esp, 8
test eax, eax
je 0x52da73
sub eax, ebp
sar eax, 1
mov edi, eax
test edi, edi
jle 0x52da73
mov ecx, edi
sub ecx, esi
sub ecx, 5
push ecx
add esi, 5
push esi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
call fcn.004269f0
mov ecx, dword [esp + 0x3c]
push eax
mov byte [esp + 0x34], 1
call fcn.00402310
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 0
call fcn.004a4690
mov ecx, edi
mov edx, 0x5b61b0
lea esi, [esp + 0x18]
call fcn.0040dcb0
test eax, eax
jge 0x52d9d1
mov eax, dword [ebp - 0xc]
sub eax, edi
sub eax, 1
push eax
add edi, 1
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
call fcn.004269f0
mov eax, dword [eax]
push eax
call fcn.00552f5b
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x24]
call fcn.004a4690
jmp 0x52da73
cmp dword [ebp - 0xc], 0
jl 0x52da73
push 0x5984c8
push ebp
call fcn.00552eeb
add esp, 8
test eax, eax
je 0x52da73
sub eax, ebp
sar eax, 1
mov esi, eax
test esi, esi
jle 0x52da73
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.0040dce0
mov ecx, dword [esp + 0x3c]
push eax
mov byte [esp + 0x34], 2
call fcn.00402310
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 0
call fcn.004a4690
mov eax, dword [ebp - 0xc]
sub eax, esi
sub eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.00401a60
jmp 0x52d9e9
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x52da80
push ebx
call fcn.005308f6
add esp, 4
lea eax, [ebp - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52daa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret