Function at 0x4f2fc0
Capabilities:
Get proxy

Disassembly:
push 0xffffffffffffffff
push 0x57a758
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
mov ebp, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x5afd70
push SysReAllocStringLen
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f3059
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x20]
mov edi, 0x5bea7c
call fcn.0052d780
mov ebx, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x4f3059
cmp dword [esp + 0x1c], 4
jne 0x4f304a
mov edx, dword [ebx]
mov dword [ebp], edx
cmp dword [ebp], 0
je 0x4f3061
mov dword [ebp], 5
jmp 0x4f3061
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x4f3074
push ebx
call fcn.005308f6
add esp, 4
xor ebx, ebx
mov dword [esp + 0x18], ebx
call fcn.00530e1f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4f308e
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 + 0x14], 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 0x4f325a
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
lea esi, [esp + 0x20]
mov edi, str.ProxyServer
call fcn.0052d780
add esp, 4
test eax, eax
je 0x4f3256
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x4f3256
mov ebx, dword [esp + 0x18]
shr eax, 1
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.004121c0
mov ebp, dword [esp + 0x14]
cmp dword [ebp - 0xc], 0
jl 0x4f325a
push 0x5b62e4
push ebp
call fcn.00552eeb
add esp, 8
test eax, eax
je 0x4f31ec
sub eax, ebp
sar eax, 1
mov esi, eax
js 0x4f31ec
cmp esi, dword [ebp - 0xc]
jg 0x4f325a
lea eax, [ebp + esi*2]
push 0x5984c8
push eax
call fcn.00552eeb
add esp, 8
test eax, eax
je 0x4f325a
sub eax, ebp
sar eax, 1
mov edi, eax
test edi, edi
jle 0x4f325a
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 + 0x20]
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 + 0x14]
call fcn.0040dcb0
test eax, eax
jge 0x4f31b8
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 + 0x20]
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 0x4f325a
cmp dword [ebp - 0xc], 0
jl 0x4f325a
push 0x5984c8
push ebp
call fcn.00552eeb
add esp, 8
test eax, eax
je 0x4f325a
sub eax, ebp
sar eax, 1
mov esi, eax
test esi, esi
jle 0x4f325a
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x1c]
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 + 0x1c]
call fcn.00401a60
jmp 0x4f31d0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4f3267
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 0x4f328b
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