Function at 0x5fd519
Capabilities:
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x814
push 0xffffffffffffffff
push 0x615a27
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x710544]
xor eax, ebp
mov dword [ebp + 0x810], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea eax, [ebp]
mov dword [ebp - 4], ebx
push dword [ebp + 0x81c]
mov dword [ebp - 0x34], eax
push str.ParseProxyPac_ServerName_:_s
call fcn.00609aff
push 1
push str.LoadLibrary:_d
mov byte [ebp - 4], 1
call fcn.00609aff
add esp, 0x10
push str.jsproxy.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 1
push str.LoadLibrary1:_d
mov edi, eax
call fcn.00609aff
pop ecx
pop ecx
test edi, edi
jne 0x5fd5ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary_failed_to_load_jsproxy.dll_with_error:__d
call fcn.00609c05
pop ecx
pop ecx
mov eax, dword [ebp + 0x81c]
lea ecx, [eax - 0x10]
call fcn.00452239
xor al, al
jmp 0x5fdb87
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetInitializeAutoProxyDll
push edi
call esi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x5fd5ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_failed_to_find_InternetInitializeAutoProxyDll_with_error_:_d
jmp 0x5fd5ae
push str.InternetDeInitializeAutoProxyDll
push edi
call esi
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x5fd60a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_failed_to_find_InternetDeInitializeAutoProxyDll_with_error_:_d
jmp 0x5fd5ae
push str.InternetGetProxyInfo
push edi
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x5fd627
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x697fe0
jmp 0x5fd5ae
lea eax, [ebp + 0x400]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5fd652
call esi
push eax
push str.GetTempPath_Failed_:__d
call fcn.00609c05
pop ecx
pop ecx
lea eax, [ebp + 0x608]
push eax
push ebx
push ebx
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x5fd67b
call esi
push eax
push str.GetTempFileName_Failed_:__d
call fcn.00609c05
pop ecx
pop ecx
lea eax, [ebp + 0x608]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004525e6
push ebx
push ebx
lea eax, [ebp + 0x608]
mov byte [ebp - 4], 2
push eax
push dword [0x7247ac]
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
push dword [0x7247ac]
mov esi, eax
push str.ConnVar.AutoConfigUrl_:__s
call fcn.00609c05
pop ecx
pop ecx
lea eax, [ebp + 0x608]
push eax
push str.TempFile_:__s
call fcn.00609c05
pop ecx
pop ecx
test esi, esi
jne 0x5fd6d6
push str.Pac_successfully_downloaded
jmp 0x5fd71a
cmp esi, 0x800c0008
jne 0x5fd706
push str.URLDownloadToFile_Failed_with_INETDownloadFailure
call fcn.00609c05
pop ecx
lea eax, [ebp + 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00452239
jmp 0x5fd5b5
cmp esi, 0x8007000e
jne 0x5fd715
push str.URLDownloadToFile_Failed_with_OutOfMemory
jmp 0x5fd6e3
push str.Unknown_URLDownloadToFile_Error_._Check_the_Passed_Parameters
call fcn.00609c05
pop ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0045313f
push ebx
push ebx
push ebx
push eax
push ebx
call dword [ebp - 0x18]
test eax, eax
jne 0x5fd749
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6982d8
call fcn.00609c05
pop ecx
jmp 0x5fd6e8
push dword [ebp + 0x81c]
lea ecx, [ebp - 0x28]
call fcn.004525e6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], 0x400
push ebx
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x18], eax
call fcn.0045313f
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
push ebx
mov esi, dword [eax - 0xc]
call fcn.0045313f
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x18]
push dword [ebp - 0x3c]
push esi
push eax
call dword [ebp - 0x14]
test eax, eax
jne 0x5fd7cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InterGetProxyInfo_Failed_:__d
call fcn.00609c05
pop ecx
pop ecx
lea eax, [ebp + 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00452239
jmp 0x5fd6f6
push dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
call fcn.004528ca
mov byte [ebp - 4], 4
push 0x698350
push dword [ebp - 0x24]
call fcn.00452251
pop ecx
pop ecx
test eax, eax
jne 0x5fd834
push str.Pac_says_Direct
call fcn.00609c05
pop ecx
lea eax, [ebp + 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00452239
jmp 0x5fdb77
push dword [ebp - 0x24]
push str.Pac_detects_:__s
call fcn.00609c05
pop ecx
pop ecx
call fcn.004e2479
push eax
lea ecx, [ebp - 0x20]
call fcn.00452c50
mov byte [ebp - 4], 5
call fcn.004e2479
push eax
lea ecx, [ebp - 0x1c]
call fcn.00452c50
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
push 0x697fdc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.004536f7
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00452dcd
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
je 0x5fd8d5
lea eax, [ebp - 0x18]
push eax
push 0x698370
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.004536f7
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.00452dcd
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov esi, dword [ebp - 0x20]
push 0x698360
push esi
call fcn.00452251
pop ecx
pop ecx
test eax, eax
je 0x5fd9e5
cmp dword [esi - 0xc], 0
je 0x5fd9e5
push ebx
push str.SOCKS
lea ecx, [ebp - 0x20]
call fcn.004527c8
cmp eax, 0xffffffff
jne 0x5fd961
push str.PROXY__PROXY
lea ecx, [ebp - 0x20]
call fcn.00454a10
push eax
lea ecx, [ebp - 0x20]
call fcn.00452dcd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x6982d4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.004536f7
push eax
mov ecx, 0x724798
mov byte [ebp - 4], 9
call fcn.00452dcd
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
lea eax, [ebp - 0x18]
push eax
push 0x698378
jmp 0x5fd9c1
push str.parsing_socks_proxy_server
call fcn.00609aff
pop ecx
push str.SOCKS__SOCKS
lea ecx, [ebp - 0x20]
call fcn.00454a10
push eax
lea ecx, [ebp - 0x20]
call fcn.00452dcd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x6983c0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.004536f7
push eax
mov ecx, 0x724798
mov byte [ebp - 4], 0xa
call fcn.00452dcd
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
lea eax, [ebp - 0x18]
push eax
push 0x6983b8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.004536f7
push dword [eax]
call fcn.00519ce9
pop ecx
mov ecx, dword [ebp - 0x14]
mov dword [0x7247a0], eax
lea ecx, [ecx - 0x10]
call fcn.00452239
mov esi, dword [ebp - 0x1c]
push str.DIRECT
push esi
call fcn.00452251
pop ecx
pop ecx
test eax, eax
je 0x5fdaf5
cmp dword [esi - 0xc], 0
je 0x5fdaf5
push ebx
push 0x6983c4
lea ecx, [ebp - 0x1c]
call fcn.004527c8
cmp eax, 0xffffffff
jne 0x5fda71
push 0x6983e4
lea ecx, [ebp - 0x1c]
call fcn.00454a10
push eax
lea ecx, [ebp - 0x1c]
call fcn.00452dcd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x6983e0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004536f7
push eax
mov ecx, 0x72479c
mov byte [ebp - 4], 0xb
call fcn.00452dcd
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
lea eax, [ebp - 0x18]
push eax
push 0x698420
jmp 0x5fdad1
push str.parsing_socks_proxy_server_2
call fcn.00609aff
pop ecx
push 0x69842c
lea ecx, [ebp - 0x1c]
call fcn.00454a10
push eax
lea ecx, [ebp - 0x1c]
call fcn.00452dcd
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push 0x698428
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004536f7
push eax
mov ecx, 0x72479c
mov byte [ebp - 4], 0xc
call fcn.00452dcd
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00452239
lea eax, [ebp - 0x18]
push eax
push 0x69848c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004536f7
push dword [eax]
call fcn.00519ce9
pop ecx
mov ecx, dword [ebp - 0x14]
mov dword [0x7247a4], eax
lea ecx, [ecx - 0x10]
call fcn.00452239
push ebx
push ebx
call dword [ebp - 0x30]
test eax, eax
jne 0x5fdb11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeInitializeAutoProxy_Failed_:__d
call fcn.00609c05
pop ecx
pop ecx
push dword [0x72479c]
push dword [0x724798]
push str.ProxyHost1_:__s___ProxyHost2_:__s
call fcn.00609c05
add esp, 0xc
lea eax, [ebp + 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x1c]
mov byte [0x7251c4], 1
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00452239
mov bl, 1
mov ecx, dword [ebp + 0x81c]
add ecx, 0xfffffff0
call fcn.00452239
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x810]
xor ecx, ebp
call fcn.00507778
add ebp, 0x814
leave
ret