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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x708e28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x82d084]
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 0x6598d8
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x659525
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 0x65954a
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x659558
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x659569
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 0x659892
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x192], 0
je 0x6595e3
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 0
je 0x6595e3
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x18], 0
je 0x6595e3
cmp dword [eax + 0x34], 8
lea ecx, [eax + 0x20]
jb 0x6595b7
mov ecx, dword [ecx]
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
jb 0x6595c2
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 0x6597bd
mov eax, dword [esi + 0x24]
mov ecx, esi
push dword [ebp - 0x40]
mov al, byte [eax + 0x193]
call fcn.00658e10
mov ecx, dword [esi + 0xb0]
test al, al
je 0x65987f
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x65985a
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.00658a70
test al, al
jne 0x659641
xor bl, bl
jmp 0x65965f
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.006a6154
add esp, 4
mov ecx, esi
push eax
call fcn.006587c0
mov bl, al
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
test bl, bl
je 0x659852
cmp dword [esi + 0x38], 0xb
jne 0x659906
mov eax, dword [esi + 0x24]
mov ecx, dword [0x853a98]
mov byte [eax + 0x192], 1
test ecx, ecx
je 0x65969d
cmp byte [0x853a6a], 0
jne 0x6596a8
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.Response_from_proxy_server_is_:
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x747368]
call edi
add esp, 8
lea ecx, [esi + 0xb0]
call fcn.00658c60
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 0x6596f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.00658050
jmp 0x659749
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x24]
test al, 0x10
je 0x65970d
mov dword [ecx + 0x1b4], 0x10
jmp 0x659749
test al, 2
je 0x65971d
mov dword [ecx + 0x1b4], 2
jmp 0x659749
test al, 4
je 0x65972d
mov dword [ecx + 0x1b4], 4
jmp 0x659749
test al, 8
je 0x65973d
mov dword [ecx + 0x1b4], 8
jmp 0x659749
movzx eax, al
and eax, 1
mov dword [ecx + 0x1b4], eax
test bh, bh
jne 0x659906
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 2
jne 0x659780
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 0x65980b
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x659793
cmp byte [0x853a6a], 0
jne 0x65979e
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
call edi
add esp, 8
mov bh, 1
jmp 0x659500
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.00658050
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x6597de
cmp byte [0x853a6a], 0
jne 0x6597e9
call fcn.00651e50
mov ecx, dword [0x853a98]
mov eax, dword [ecx]
push str.Failed_to_set_the_proxy_credentials
push 0x75b10c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x747368]
call esi
add esp, 0xc
jmp 0x659906
mov edi, dword [0x853a98]
test edi, edi
je 0x65981e
cmp byte [0x853a6a], 0
jne 0x659829
call fcn.00651e50
mov edi, dword [0x853a98]
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 0x75b10c
push edi
call dword [0x747368]
call esi
add esp, 0x10
jmp 0x659906
mov al, byte [ebp - 0x39]
jmp 0x659908
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x65986d
cmp byte [0x853a6a], 0
jne 0x659878
call fcn.00651e50
mov ecx, dword [0x853a98]
push str.initHttpDownload:_failed_to_receive_the_response_from_server
jmp 0x6598b5
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
jmp 0x659906
mov ecx, dword [0x853a98]
test ecx, ecx
je 0x6598a5
cmp byte [0x853a6a], 0
jne 0x6598b0
call fcn.00651e50
mov ecx, dword [0x853a98]
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 [0x747368]
call edi
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
mov ecx, esi
call fcn.00658050
jmp 0x659906
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x75b10c
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.00657f10
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.0067ba01
mov esp, ebp
pop ebp
ret 8