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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov rsi, rcx
call fcn.18001d570
xor ebx, ebx
test rax, rax
je 0x180008ba8
lea rdi, [rsi + 0x332]
mov rcx, rdi
call fcn.18001d570
test rax, rax
je 0x180008ba8
lea r13, [rsi + 0x396]
mov rcx, r13
call fcn.18001d570
test rax, rax
je 0x180008ba8
lea rcx, [rbp + 0x592]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x590], bx
call fcn.18001cca0
lea rcx, [rbp + 0x382]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x380], bx
call fcn.18001cca0
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x50], bl
call fcn.18001cca0
lea rcx, [rbp + 0x61]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x60], bl
call fcn.18001cca0
mov qword [rsp + 0x20], r13
mov r13d, 0x104
lea r8, str._s:_s
lea rcx, [rbp + 0x590]
mov edx, r13d
mov r9, rdi
call fcn.18001d8d8
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
lea r8, [rbp + 0x590]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rsp + 0x50]
mov dword [rbp + 0x7d0], 0x400
call fcn.18001d680
lea r9, [rbp + 0x7d0]
lea r8, [rbp + 0x60]
lea rcx, [rsp + 0x50]
mov edx, eax
call fcn.180001ee0
test eax, eax
je 0x180008cec
cmp dword [rbp + 0x7d0], ebx
jle 0x180008cec
movzx eax, bx
lea rdi, [rbp + 0x380]
mov ecx, r13d
rep stosw word [rdi], ax
lea rax, [rbp + 0x380]
lea r8, [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, bx
lea rdi, [rbp + 0x170]
mov ecx, r13d
rep stosw word [rdi], ax
lea r9, [rbp + 0x380]
lea r8, str.Proxy_Authorization:_Basic__s
lea rcx, [rbp + 0x170]
mov edx, r13d
call fcn.18001d8d8
lea rcx, [rbp + 0x170]
call fcn.18001d570
mov rcx, qword [rsi + 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 0x180008cec
lea rcx, [rbp + 0x170]
call fcn.18001d570
mov rcx, qword [rsi + 0x288]
lea rdx, [rbp + 0x170]
mov r8, rax
mov r9d, edi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008cec
cmp r14d, 1
jne 0x180008beb
mov rax, qword [rsi + 0x288]
mov r8d, r15d
mov rdx, r12
mov rcx, rsi
mov qword [rsi + 0x290], rax
call fcn.18000823c
test eax, eax
jne 0x180008c23
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.0x02__PSD_failed:_0x_x.
mov edx, eax
mov edi, eax
call fcn.180002148
mov eax, edi
jmp 0x180008cee
test r14d, r14d
jne 0x180008cec
mov rax, qword [rsi + 0x280]
mov r8d, r15d
mov rdx, r12
mov rcx, rsi
mov qword [rsi + 0x290], rax
call fcn.180007c5c
test eax, eax
jne 0x180008c23
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.0x02__GSD_failed:_0x_x.
jmp 0x180008bdb
mov rcx, qword [rsi + 0x290]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180008c45
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.0x02__RR_failed:_0x_x.
jmp 0x180008bdb
mov rcx, rsi
call fcn.180008d10
lea rcx, str.0x02__Status:__d.
mov edx, eax
mov edi, eax
call fcn.180002148
mov rcx, rsi
call fcn.180008da8
cmp edi, 0x191
je 0x180008c75
cmp edi, 0x197
jne 0x180008cdf
lea rcx, str.0x02__Response_Status:__d.
mov edx, edi
call fcn.180002148
mov rcx, qword [rsi + 0x290]
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x7d0]
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x40], ebx
mov dword [rbp + 0x7d0], ebx
mov dword [rsp + 0x44], ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
mov r8d, dword [rbp + 0x7d0]
mov edx, dword [rsp + 0x40]
lea rcx, [rsi + 0x396]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 0x290]
lea r9, [rsi + 0x332]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
cmp edi, 0xc8
sete bl
mov eax, ebx
jmp 0x180008cee
xor eax, eax
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret