Function at 0x1800117b0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x14b8]
mov eax, 0x15b8
call fcn.18001b470
sub rsp, rax
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rax, qword [0x180057090]
xor rax, rsp
mov qword [rbp + 0x14a0], rax
mov qword [rbp - 0x78], r9
mov rsi, r8
mov qword [rsp + 0x48], r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rbp + 0x1500]
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp + 0x1508]
mov qword [rsp + 0x78], rcx
mov eax, dword [rbp + 0x1510]
mov dword [rsp + 0x6c], eax
xor ecx, ecx
mov dword [rbp - 0x70], ecx
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], send
mov byte [rbp + 0x38], cl
cmp qword [rdx + 0x10], rcx
je 0x180012140
test eax, eax
jle 0x180012140
xor edx, edx
lea r8d, [rcx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.18001dbc0
mov dword [rbp - 0x60], 0x68
mov ecx, 0x20
call fcn.18001afd8
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], reloc.WS2_32.dll_recv
mov ecx, 0x208
call fcn.18001afd8
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x104
mov ecx, 0x208
call fcn.18001afd8
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], 0x104
mov ecx, 0x208
call fcn.18001afd8
mov qword [rbp - 8], rax
mov dword [rbp], 0x104
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x1800118b4
mov rbx, qword [rbx]
lea r9, [rbp - 0x60]
mov r8d, 0x80000000
mov edx, eax
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x1800118db
xor ecx, ecx
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], cl
jmp 0x180012148
cmp qword [rsi + 0x18], 8
jb 0x1800118e7
mov rcx, qword [rsi]
jmp 0x1800118ea
mov rcx, rsi
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x18001194e
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], sil
lea r8d, [rsi + 0x14]
lea rdx, str.Failed_open_session_
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.180014f20
movups xmm0, xmmword [rbp + 0x38]
movups xmm1, xmmword [rbp + 0x48]
mov qword [rbp + 0x48], rsi
mov byte [rbp + 0x38], sil
jmp 0x180012150
mov dword [rsp + 0x20], 0x2710
mov edx, 0x2710
mov r9d, edx
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1800119a6
lea r8d, [rax + 0x13]
lea rdx, str.Failed_set_timeout_
mov byte [rbp + 0x18], sil
mov qword [rbp + 0x30], send
mov qword [rbp + 0x28], rsi
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.180014f20
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x180011939
cmp dword [rbp - 0x4c], 1
sete sil
mov dword [rsp + 0x40], esi
xor r9d, r9d
movzx r8d, word [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x1800119e3
xor esi, esi
lea r8d, [rax + 0xf]
lea rdx, str.Failed_connect_
jmp 0x180011979
mov eax, 0x800000
test esi, esi
mov edx, 0
cmovne eax, edx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8, qword [rbp - 0x18]
lea rdx, [0x18004c2a8]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x180011a5e
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], sil
lea r8d, [rax + 0x14]
lea rdx, str.Failed_open_request_
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.180014f20
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x18001199b
xor ecx, ecx
mov qword [rbp + 0x68], rcx
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], cx
or rbx, 0xffffffffffffffff
mov rax, qword [rbp - 0x78]
cmp qword [rax + 0x10], rcx
je 0x180011b06
mov r8, rax
lea rdx, [0x18004c2c8]
lea rcx, [rbp + 0x78]
call fcn.18000d220
nop
lea r8, [0x18004c1ec]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180013ee0
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000de80
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180011ad7
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a540
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov r8, qword [rbp + 0x90]
cmp r8, 8
jb 0x180011b06
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.18000a540
mov rax, qword [rbp - 0x80]
cmp qword [rax + 0x10], 0
je 0x180011b99
mov r8, rax
lea rdx, [0x18004c2f0]
lea rcx, [rbp + 0x78]
call fcn.18000d220
nop
lea r8, [0x18004c25c]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180013ee0
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000de80
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180011b6a
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a540
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov r8, qword [rbp + 0x90]
cmp r8, 8
jb 0x180011b99
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.18000a540
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x10], 0
je 0x180011c2d
mov r8, rax
lea rdx, [0x18004c320]
lea rcx, [rbp + 0x78]
call fcn.18000d220
nop
lea r8, [0x18004c314]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180013ee0
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000de80
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180011bfe
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a540
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], ax
mov r8, qword [rbp + 0x90]
cmp r8, 8
jb 0x180011c2d
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.18000a540
cmp qword [rbp + 0x68], 0
je 0x180011d0e
lea r9, [rbp + 0x58]
cmp qword [rbp + 0x70], 8
cmovae r9, qword [rbp + 0x58]
lea rdx, [rbp + 0x58]
cmovae rdx, qword [rbp + 0x58]
mov r8, rbx
inc r8
cmp word [r9 + r8*2], 0
jne 0x180011c52
mov r9d, 0x20000000
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x180011d0e
lea r8d, [rax + 0x12]
lea rdx, str.Failed_add_header_
xor ebx, ebx
mov byte [rbp + 0x18], bl
mov qword [rbp + 0x30], send
mov qword [rbp + 0x28], rbx
lea rcx, [rbp + 0x18]
call fcn.180001d00
lea rcx, [rbp + 0x18]
call fcn.180014f20
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], bl
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x48]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x50], send
mov r8, qword [rbp + 0x70]
cmp r8, 8
jb 0x180011cf9
inc r8
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
call fcn.18000a540
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], bx
jmp 0x18001215f
mov dword [rsp + 0x64], 0x3300
cmp dword [rsp + 0x40], 0
jne 0x180011d49
mov r9d, 4
lea r8, [rsp + 0x64]
lea edx, [r9 + 0x1b]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x180011d49
lea r8d, [rax + 0x13]
lea rdx, str.Failed_set_dwFlags_
jmp 0x180011c7f
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x180011e0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x18004c368]
lea rcx, [rbp + 0xa0]
call fcn.180013f50
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], al
lea rax, [rbp + 0xa0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180011da5
mov r8, rbx
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x18]
call fcn.180001d00
nop
lea r8, [rbp + 0x18]
lea rdx, str.Failed_send_request:
lea rcx, [rbp + 0x78]
call fcn.18000cd80
mov rcx, rax
call fcn.180014f20
nop
lea rcx, [rbp + 0x18]
call fcn.180001c80
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor ebx, ebx
jmp 0x180011cc1
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180011e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__d_has_occurred._n
lea rcx, [rbp + 0xa0]
call fcn.180013f50
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], send
mov byte [rbp + 0x18], al
lea rax, [rbp + 0xa0]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180011e51
mov r8, rbx
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0x18]
call fcn.180001d00
nop
lea r8, [rbp + 0x18]
lea rdx, str.Failed_receive_response:
lea rcx, [rbp + 0x78]
call fcn.18000cd80
mov rcx, rax
call fcn.180014f20
nop
jmp 0x180011ddf
xor ebx, ebx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edx, dword [rsp + 0x60]
lea eax, [rdx - 0x12c]
cmp eax, 3
jbe 0x180012021
lea eax, [rdx - 0x133]
cmp eax, 1
jbe 0x180012021
cmp edx, 0xc8
je 0x180011f4f
cmp edx, 0x194
je 0x180011f4f
lea rcx, [rbp + 0x18]
call fcn.1800022c0
nop
mov r8, rax
lea rdx, str.Error:_Status_Code_:
lea rcx, [rbp + 0x78]
call fcn.18000cd80
mov rcx, rax
call fcn.180014f20
nop
lea rcx, [rbp + 0x18]
call fcn.180001c80
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], bl
jmp 0x180011cc8
mov esi, 0xa
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x44], ebx
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180011ff3
mov ecx, dword [rsp + 0x44]
inc ecx
call fcn.18001afd8
mov rbx, rax
test rax, rax
je 0x180011fed
mov r8d, dword [rsp + 0x44]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.18001dbc0
xor eax, eax
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x180011fc3
dec esi
jmp 0x180011fd4
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.1800094a0
mov rcx, rbx
call fcn.18001aca0
xor ebx, ebx
cmp dword [rsp + 0x44], ebx
jbe 0x180011ff3
test esi, esi
js 0x180011ff3
jmp 0x180011f60
xor ebx, ebx
mov dword [rsp + 0x44], ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], 0
jmp 0x180011cc8
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x4a0]
xor r8d, r8d
lea edx, [r8 + 0x21]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], bx
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x4a0]
lea rcx, [rbp + 0x18]
call fcn.18000dd60
lea rdx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x28]
lea rbx, [rdx + rax*2]
lea rsi, [rbp + 0x18]
cmovae rsi, qword [rbp + 0x18]
xor eax, eax
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], socket
mov byte [rbp + 0x78], al
mov rdx, rbx
sub rdx, rsi
sar rdx, 1
cmp rdx, 0xf
jbe 0x1800120c2
lea rcx, [rbp + 0x78]
call fcn.180001e80
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x78]
call fcn.180014660
nop
mov eax, dword [rsp + 0x6c]
dec eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x78]
mov r8, qword [rsp + 0x48]
lea rdx, [rbp + 0x18]
mov rcx, rdi
call fcn.1800117b0
nop
lea rcx, [rbp + 0x78]
call fcn.180001c80
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180012129
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.18000a540
xor ebx, ebx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], bx
jmp 0x180011cdf
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], 0
movups xmm1, xmmword [rbp + 0x48]
mov qword [rbp + 0x48], rcx
movups xmmword [rdi], xmm0
mov qword [rbp + 0x50], send
movups xmmword [rdi + 0x10], xmm1
lea rcx, [rbp + 0x38]
call fcn.180001c80
mov rax, rdi
mov rcx, qword [rbp + 0x14a0]
xor rcx, rsp
call fcn.18001a580
add rsp, 0x15b8
pop rdi
pop rsi
pop rbx
pop rbp
ret