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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x17], 1
mov byte [ebp - 0x15], 0
nop dword [eax]
cmp byte [esi + 0x20], 0
je 0x6badc0
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x6baa35
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 0x6baa5a
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea ecx, [esi + 0x7c]
jb 0x6baa68
mov ecx, dword [ecx]
cmp dword [esi + 0xa8], 8
lea eax, [esi + 0x94]
jb 0x6baa79
mov eax, dword [eax]
push edi
push 0
push edx
push 0
push ecx
push eax
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xb0], eax
test eax, eax
je 0x6bada1
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x192], 0
je 0x6baaf3
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 0
je 0x6baaf3
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x18], 0
je 0x6baaf3
cmp dword [eax + 0x34], 8
lea edx, [eax + 0x20]
jb 0x6baac7
mov edx, dword [edx]
cmp dword [eax + 0x1c], 8
lea ecx, [eax + 8]
jb 0x6baad2
mov ecx, dword [ecx]
mov eax, dword [eax + 0x1b4]
push 0
push edx
push ecx
push eax
push 1
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x6bacd5
mov eax, dword [esi + 0x24]
mov al, byte [eax + 0x193]
cmp byte [esi + 0x20], 0
je 0x6bad5a
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x10], 0
jne 0x6bab13
xor ebx, ebx
jmp 0x6bab1d
cmp dword [eax + 0x14], 8
mov ebx, eax
jb 0x6bab1d
mov ebx, dword [eax]
call fcn.006aafd0
push eax
call fcn.0065da40
add esp, 4
mov byte [ebp - 0x16], al
nop
push 0
push 0
push 0
push 0
push 0
push ebx
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
jne 0x6bab79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x6bab6f
call fcn.006aafd0
push str.redirection_detected._Sending_the_request_again
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
jmp 0x6bab30
push eax
mov ecx, esi
call fcn.006ba450
xor edi, edi
cmp byte [ebp - 0x16], 0
je 0x6bab8d
call fcn.006aafd0
push eax
call fcn.0065e070
add esp, 4
mov eax, dword [esi + 0xb0]
lea ebx, [esi + 0xb0]
cmp edi, 1
jne 0x6bad8e
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x6bad34
cmp byte [ebp + 0xc], 0
je 0x6babc2
push ebx
call fcn.006ba170
add esp, 4
mov ecx, esi
call fcn.006b9600
test al, al
je 0x6bad1e
cmp dword [esi + 0x38], 0xb
jne 0x6badee
mov eax, dword [esi + 0x24]
mov byte [eax + 0x192], 1
call fcn.006aafd0
push str.Response_from_proxy_server_is_:
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
push ebx
call fcn.006ba170
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x6bac2c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.006ba450
jmp 0x6bac84
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x24]
test al, 0x10
je 0x6bac42
mov dword [ecx + 0x1b4], 0x10
jmp 0x6bac7e
test al, 2
je 0x6bac52
mov dword [ecx + 0x1b4], 2
jmp 0x6bac7e
test al, 4
je 0x6bac62
mov dword [ecx + 0x1b4], 4
jmp 0x6bac7e
test al, 8
je 0x6bac72
mov dword [ecx + 0x1b4], 8
jmp 0x6bac7e
movzx eax, al
and eax, 1
mov dword [ecx + 0x1b4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x15], 0
jne 0x6badee
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 2
jne 0x6bacb9
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push eax
push 0x4d
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x6bacfc
call fcn.006aafd0
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
mov byte [ebp - 0x15], 1
jmp 0x6baa10
call ebx
push eax
mov ecx, esi
call fcn.006ba450
call fcn.006aafd0
push str.Failed_to_set_the_proxy_credentials
push 0x799430
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
jmp 0x6badee
call fcn.006aafd0
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Failed_to_set_the_autologon_security_option_in_the_winhttp_session____d
push 0x799430
push esi
call dword [edi + 0x24]
add esp, 0x10
jmp 0x6badee
mov al, byte [ebp - 0x17]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 8
call fcn.006aafd0
push str.initHttpDownload:_failed_to_receive_the_response_from_server
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.006ba450
jmp 0x6badee
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x799430
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00426d40
push 0
push 0x13
mov ecx, esi
call fcn.006bae10
mov eax, dword [esi + 0xb0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
jmp 0x6badee
call fcn.006aafd0
push str.createRequest_:_failed_to_open_the_request_handle
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call ebx
push eax
mov ecx, esi
call fcn.006ba450
jmp 0x6badee
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x799430
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.00426d40
push 0
push 0x13
mov ecx, esi
call fcn.006bae10
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0965
mov esp, ebp
pop ebp
ret 8