Function at 0x180010c90
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.18001a7e0
sub rsp, rax
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rax, qword [0x180056090]
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 0x180011620
test eax, eax
jle 0x180011620
xor edx, edx
lea r8d, [rcx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.18001cf10
mov dword [rbp - 0x60], 0x68
mov ecx, 0x20
call fcn.18001a348
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], reloc.WS2_32.dll_recv
mov ecx, 0x208
call fcn.18001a348
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x104
mov ecx, 0x208
call fcn.18001a348
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], 0x104
mov ecx, 0x208
call fcn.18001a348
mov qword [rbp - 8], rax
mov dword [rbp], 0x104
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x180010d94
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 0x180010dbb
xor ecx, ecx
movups xmm0, xmmword [rbp + 0x38]
mov byte [rbp + 0x38], cl
jmp 0x180011628
cmp qword [rsi + 0x18], 8
jb 0x180010dc7
mov rcx, qword [rsi]
jmp 0x180010dca
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 0x180010e2e
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.1800144d0
movups xmm0, xmmword [rbp + 0x38]
movups xmm1, xmmword [rbp + 0x48]
mov qword [rbp + 0x48], rsi
mov byte [rbp + 0x38], sil
jmp 0x180011630
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 0x180010e86
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.1800144d0
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x180010e19
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 0x180010ec3
xor esi, esi
lea r8d, [rax + 0xf]
lea rdx, str.Failed_connect_
jmp 0x180010e59
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, [0x18004b2a0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x180010f3e
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.1800144d0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x180010e7b
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 0x180010fe6
mov r8, rax
lea rdx, [0x18004b2c0]
lea rcx, [rbp + 0x78]
call fcn.18000c6e0
nop
lea r8, [0x18004b1bc]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180013490
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000d340
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180010fb7
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.180009aa0
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 0x180010fe6
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.180009aa0
mov rax, qword [rbp - 0x80]
cmp qword [rax + 0x10], 0
je 0x180011079
mov r8, rax
lea rdx, [0x18004b2e8]
lea rcx, [rbp + 0x78]
call fcn.18000c6e0
nop
lea r8, [0x18004b254]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180013490
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000d340
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x18001104a
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.180009aa0
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 0x180011079
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.180009aa0
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x10], 0
je 0x18001110d
mov r8, rax
lea rdx, [0x18004b318]
lea rcx, [rbp + 0x78]
call fcn.18000c6e0
nop
lea r8, [0x18004b30c]
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180013490
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.18000d340
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x1800110de
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.180009aa0
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 0x18001110d
inc r8
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x78]
call fcn.180009aa0
cmp qword [rbp + 0x68], 0
je 0x1800111ee
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 0x180011132
mov r9d, 0x20000000
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1800111ee
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.1800144d0
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 0x1800111d9
inc r8
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
call fcn.180009aa0
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], bx
jmp 0x18001163f
mov dword [rsp + 0x64], 0x3300
cmp dword [rsp + 0x40], 0
jne 0x180011229
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 0x180011229
lea r8d, [rax + 0x13]
lea rdx, str.Failed_set_dwFlags_
jmp 0x18001115f
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 0x1800112ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x18004b360]
lea rcx, [rbp + 0xa0]
call fcn.180013500
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 0x180011285
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.18000c240
mov rcx, rax
call fcn.1800144d0
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 0x1800111a1
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x180011370
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error__d_has_occurred._n
lea rcx, [rbp + 0xa0]
call fcn.180013500
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 0x180011331
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.18000c240
mov rcx, rax
call fcn.1800144d0
nop
jmp 0x1800112bf
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 0x180011501
lea eax, [rdx - 0x133]
cmp eax, 1
jbe 0x180011501
cmp edx, 0xc8
je 0x18001142f
cmp edx, 0x194
je 0x18001142f
lea rcx, [rbp + 0x18]
call fcn.180010c70
nop
mov r8, rax
lea rdx, str.Error:_Status_Code_:
lea rcx, [rbp + 0x78]
call fcn.18000c240
mov rcx, rax
call fcn.1800144d0
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 0x1800111a8
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 0x1800114d3
mov ecx, dword [rsp + 0x44]
inc ecx
call fcn.18001a348
mov rbx, rax
test rax, rax
je 0x1800114cd
mov r8d, dword [rsp + 0x44]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.18001cf10
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 0x1800114a3
dec esi
jmp 0x1800114b4
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.180008a00
mov rcx, rbx
call fcn.180019fe4
xor ebx, ebx
cmp dword [rsp + 0x44], ebx
jbe 0x1800114d3
test esi, esi
js 0x1800114d3
jmp 0x180011440
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 0x1800111a8
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.18000d220
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 0x1800115a2
lea rcx, [rbp + 0x78]
call fcn.180001e80
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x78]
call fcn.180013c10
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.180010c90
nop
lea rcx, [rbp + 0x78]
call fcn.180001c80
nop
mov r8, qword [rbp + 0x30]
cmp r8, 8
jb 0x180011609
inc r8
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.180009aa0
xor ebx, ebx
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], bx
jmp 0x1800111bf
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.1800198f0
add rsp, 0x15b8
pop rdi
pop rsi
pop rbx
pop rbp
ret