Function at 0x180008654
Capabilities:
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov r14d, r8d
mov r15, rdx
mov rbx, rcx
call fcn.18001d570
xor r13d, r13d
test rax, rax
je 0x180008871
lea rdi, [rbx + 0x332]
mov rcx, rdi
call fcn.18001d570
test rax, rax
je 0x180008871
lea rsi, [rbx + 0x396]
mov rcx, rsi
call fcn.18001d570
test rax, rax
je 0x180008871
mov r12d, 0x206
lea rcx, [rbp + 0x592]
xor edx, edx
mov r8d, r12d
mov word [rbp + 0x590], r13w
call fcn.18001cca0
lea rcx, [rbp + 0x382]
mov r8d, r12d
xor edx, edx
mov word [rbp + 0x380], r13w
call fcn.18001cca0
mov r12d, 0x103
lea rcx, [rsp + 0x51]
mov r8d, r12d
xor edx, edx
mov byte [rsp + 0x50], r13b
call fcn.18001cca0
lea rcx, [rbp + 0x61]
mov r8d, r12d
xor edx, edx
mov byte [rbp + 0x60], r13b
call fcn.18001cca0
mov qword [rsp + 0x20], rsi
lea esi, [r12 + 1]
lea r8, str._s:_s
lea rcx, [rbp + 0x590]
mov edx, esi
mov r9, rdi
call fcn.18001d8d8
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
or r12d, 0xffffffff
lea r8, [rbp + 0x590]
xor edx, edx
xor ecx, ecx
mov r9d, r12d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x50]
mov dword [rbp + 0x7e0], 0x400
call fcn.18001d680
lea r9, [rbp + 0x7e0]
lea r8, [rbp + 0x60]
lea rcx, [rsp + 0x50]
mov edx, eax
call fcn.180001ee0
test eax, eax
je 0x180008966
cmp dword [rbp + 0x7e0], r13d
jle 0x180008966
movzx eax, r13w
lea rdi, [rbp + 0x380]
mov ecx, esi
rep stosw word [rdi], ax
lea rax, [rbp + 0x380]
lea r8, [rbp + 0x60]
mov r9d, r12d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, r13w
lea rdi, [rbp + 0x170]
mov ecx, esi
rep stosw word [rdi], ax
lea r9, [rbp + 0x380]
lea r8, str.Proxy_Authorization:_Basic__s
lea rcx, [rbp + 0x170]
mov edx, esi
call fcn.18001d8d8
lea rcx, [rbp + 0x170]
call fcn.18001d570
mov rcx, qword [rbx + 0x280]
mov edi, 0xa0000000
lea rdx, [rbp + 0x170]
mov r9d, edi
mov r8, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008966
lea rcx, [rbp + 0x170]
call fcn.18001d570
mov rcx, qword [rbx + 0x288]
lea rdx, [rbp + 0x170]
mov r8, rax
mov r9d, edi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008966
mov rax, qword [rbx + 0x280]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
mov qword [rbx + 0x290], rax
call fcn.180008234
test eax, eax
jne 0x1800088a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.0x02__SD_failed:_0x_x.
mov edx, eax
jmp 0x180008961
mov rcx, qword [rbx + 0x290]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1800088cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.0x02__RCRR_failed:_0x_x.
mov edx, eax
jmp 0x180008961
mov rcx, rbx
call fcn.180008d10
mov edi, eax
cmp eax, 0x191
je 0x1800088e4
cmp eax, 0x197
jne 0x180008949
mov rcx, qword [rbx + 0x290]
lea r9, [rbp + 0x7f8]
lea r8, [rbp + 0x7e0]
lea rdx, [rsp + 0x40]
mov dword [rbp + 0x7f8], r13d
mov dword [rbp + 0x7e0], r13d
mov dword [rsp + 0x40], r13d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov r8d, dword [rbp + 0x7e0]
mov edx, dword [rbp + 0x7f8]
mov rcx, qword [rbx + 0x290]
lea rax, [rbx + 0x396]
lea r9, [rbx + 0x332]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
cmp edi, 0xc8
jne 0x180008958
mov eax, 1
jmp 0x180008968
mov edx, edi
lea rcx, str.0x02__Status:__d.
call fcn.180002148
xor eax, eax
mov rbx, qword [rsp + 0x8e8]
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret