Function at 0x65b070
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70ac98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor bh, bh
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x39], 1
nop dword [eax]
cmp byte [esi + 0x20], 0
je 0x65b488
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x65b0d5
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x24]
mov edi, 0x800100
mov ecx, 0x100
lea edx, [eax + 0x170]
cmp dword [eax + 0x18c], 1
cmovne edi, ecx
cmp dword [edx + 0x14], 8
jb 0x65b0fa
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x65b108
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x65b119
mov ecx, dword [ecx]
push edi
push 0
push edx
push 0
push eax
push ecx
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xb0], eax
test eax, eax
je 0x65b442
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x192], 0
je 0x65b193
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 0
je 0x65b193
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x18], 0
je 0x65b193
cmp dword [eax + 0x34], 8
lea ecx, [eax + 0x20]
jb 0x65b167
mov ecx, dword [ecx]
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
jb 0x65b172
mov edx, dword [edx]
mov eax, dword [eax + 0x1b4]
push 0
push ecx
push edx
push eax
push 1
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x65b36d
mov eax, dword [esi + 0x24]
mov ecx, esi
push dword [ebp - 0x40]
mov al, byte [eax + 0x193]
call fcn.0065a9c0
mov ecx, dword [esi + 0xb0]
test al, al
je 0x65b42f
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x65b40a
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 0x34]
push eax
push 0x13
call fcn.0065a620
test al, al
jne 0x65b1f1
xor bl, bl
jmp 0x65b20f
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.006a7dd4
add esp, 4
mov ecx, esi
push eax
call fcn.0065a370
mov bl, al
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
test bl, bl
je 0x65b402
cmp dword [esi + 0x38], 0xb
jne 0x65b4b6
mov eax, dword [esi + 0x24]
mov ecx, dword [0x855ab8]
mov byte [eax + 0x192], 1
test ecx, ecx
je 0x65b24d
cmp byte [0x855a8a], 0
jne 0x65b258
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.Response_from_proxy_server_is_:
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x74835c]
call edi
add esp, 8
lea ecx, [esi + 0xb0]
call fcn.0065a810
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x65b2a7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.00659c00
jmp 0x65b2f9
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x24]
test al, 0x10
je 0x65b2bd
mov dword [ecx + 0x1b4], 0x10
jmp 0x65b2f9
test al, 2
je 0x65b2cd
mov dword [ecx + 0x1b4], 2
jmp 0x65b2f9
test al, 4
je 0x65b2dd
mov dword [ecx + 0x1b4], 4
jmp 0x65b2f9
test al, 8
je 0x65b2ed
mov dword [ecx + 0x1b4], 8
jmp 0x65b2f9
movzx eax, al
and eax, 1
mov dword [ecx + 0x1b4], eax
test bh, bh
jne 0x65b4b6
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 2
jne 0x65b330
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
push 0x4d
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x65b3bb
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x65b343
cmp byte [0x855a8a], 0
jne 0x65b34e
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x74835c]
call edi
add esp, 8
mov bh, 1
jmp 0x65b0b0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.00659c00
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x65b38e
cmp byte [0x855a8a], 0
jne 0x65b399
call fcn.00653890
mov ecx, dword [0x855ab8]
mov eax, dword [ecx]
push str.Failed_to_set_the_proxy_credentials
push 0x75c10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0xc
jmp 0x65b4b6
mov edi, dword [0x855ab8]
test edi, edi
je 0x65b3ce
cmp byte [0x855a8a], 0
jne 0x65b3d9
call fcn.00653890
mov edi, dword [0x855ab8]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.Failed_to_set_the_autologon_security_option_in_the_winhttp_session____d
push 0x75c10c
push edi
call dword [0x74835c]
call esi
add esp, 0x10
jmp 0x65b4b6
mov al, byte [ebp - 0x39]
jmp 0x65b4b8
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x65b41d
cmp byte [0x855a8a], 0
jne 0x65b428
call fcn.00653890
mov ecx, dword [0x855ab8]
push str.initHttpDownload:_failed_to_receive_the_response_from_server
jmp 0x65b465
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
jmp 0x65b4b6
mov ecx, dword [0x855ab8]
test ecx, ecx
je 0x65b455
cmp byte [0x855a8a], 0
jne 0x65b460
call fcn.00653890
mov ecx, dword [0x855ab8]
push str.createRequest_:_failed_to_open_the_request_handle
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x74835c]
call edi
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.00659c00
jmp 0x65b4b6
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x75c10c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.0042fe00
push 0
push 0x13
mov ecx, esi
call fcn.00659ac0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret 8