Function at 0x180009f90
Capabilities:
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x680]
sub rsp, 0x780
mov rax, qword [0x1801754c0]
xor rax, rsp
mov qword [rbp + 0x670], rax
mov r15, rdx
mov r14, rcx
xor r13d, r13d
mov ecx, 0x28
call fcn.1800c35cc
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], r13b
mov qword [rax + 0x20], r13
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x270]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x70], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax + rax]
lea rbx, [rbx + 1]
cmp byte [r15 + rbx], r13b
jne 0x18000a050
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9d, [rbx + 1]
mov r8, r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r12, eax
mov rdx, r12
test eax, eax
je 0x18000a830
mov eax, 2
mul rdx
cmovb rax, rdi
mov rcx, rax
call fcn.1800c3ccc
mov rdi, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
mov r8, r15
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rbp - 0x70], 0x68
lea rax, [rbp + 0x70]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], 0x100
lea rax, [rbp + 0x270]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], 0x200
mov qword [rbp - 0x68], r13
mov dword [rbp - 0x60], r13d
mov qword [rbp - 0x48], r13
mov dword [rbp - 0x40], r13d
mov qword [rbp - 0x38], r13
mov dword [rbp - 0x30], r13d
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x10], r13d
lea edx, [r12 + r12]
lea r9, [rbp - 0x70]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov ebx, eax
mov rcx, rdi
call fcn.1800c3608
test ebx, ebx
je 0x18000a830
cmp byte [r14 + 0x80], r13b
je 0x18000a15a
mov dword [rbp + 0x10], 3
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x18], xmm0
mov r9d, 0x18
lea r8, [rbp + 0x10]
mov edx, 0x26
mov rcx, qword [r14 + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
movzx eax, word [rbp - 0x4c]
test ax, ax
mov r8d, eax
jne 0x18000a16c
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, qword [rbp - 0x58]
mov rcx, qword [r14 + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x18000a251
lea rdx, [0x180149f3c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000a8f0
mov rcx, rax
lea rdx, str.Failed_to_connect
call fcn.18000a8f0
mov rcx, rax
lea rdx, [0x180149f38]
call fcn.18000a8f0
lea rdx, [0x18000aad0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x18000a209
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x18000a204
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000a852
mov rcx, r8
call fcn.1800c3608
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
mov edx, 0x28
mov rcx, rsi
call fcn.1800c3608
xor eax, eax
mov rcx, qword [rbp + 0x670]
xor rcx, rsp
call fcn.1800c3bb0
mov rbx, qword [rsp + 0x7d0]
add rsp, 0x780
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, r13d
mov ecx, 0x800000
cmp dword [rbp - 0x5c], 2
cmove eax, ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, qword [rbp - 0x28]
lea rdx, [0x180149f80]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r13, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x18000a32f
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180149f3c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000a8f0
lea rdx, str.Failed_to_open_request
mov rcx, rax
call fcn.18000a8f0
lea rdx, [0x180149f38]
mov rcx, rax
call fcn.18000a8f0
lea rdx, [0x18000aad0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x18000a31a
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x18000a315
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000a852
mov rcx, r8
call fcn.1800c3608
xor ecx, ecx
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], 0xf
mov byte [rsi], cl
jmp 0x18000a218
lea rdx, [r14 + 0x58]
mov rcx, r13
call fcn.180009e50
test al, al
jne 0x18000a370
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180149f3c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000a8f0
lea rdx, str.Failed_to_set_user_agent
jmp 0x18000a2b9
mov r15, qword [r14 + 0x40]
mov rax, qword [r14 + 0x48]
mov qword [rsp + 0x58], rax
cmp r15, rax
je 0x18000a603
lea r14, [r15 + 0x38]
movzx ebx, byte [rsp + 0x40]
nop
mov r8, qword [r14 - 0x28]
cmp qword [r14 - 0x20], 0xf
jbe 0x18000a3a3
add r8, qword [r15]
mov rdx, qword [r15]
jmp 0x18000a3a9
add r8, r15
mov rdx, r15
lea rcx, [rbp + 0x50]
call fcn.180007a90
nop
lea rdx, [r14 - 0x18]
cmp qword [r14], 0xf
jbe 0x18000a3c9
mov r8, qword [rdx]
add r8, qword [r14 - 8]
mov rdx, qword [rdx]
jmp 0x18000a3d0
mov r8, qword [r14 - 8]
add r8, rdx
lea rcx, [rbp + 0x30]
call fcn.180007a90
nop
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.18000ab10
mov rdi, rax
lea r9, [rbp + 0x30]
mov r12, qword [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova r9, r12
mov rcx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rcx
mov rdx, qword [rbp + 0x40]
cmp rdx, rax
ja 0x18000a457
lea rax, [rdx + rcx]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x10], rax
mov r13, rdi
cmp r8, 7
jbe 0x18000a42c
mov r13, qword [rdi]
lea rcx, [rcx*2]
add rcx, r13
lea r8, [rdx + rdx]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x48]
xor ecx, ecx
mov word [r13 + rax*2], cx
mov r13, qword [rsp + 0x50]
jmp 0x18000a46f
mov qword [rsp + 0x20], rdx
movzx r8d, bl
mov rcx, rdi
call fcn.18000ae60
mov rdi, rax
mov r12, qword [rbp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xor eax, eax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp + 0x20], xmm1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x18000a4df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a4da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a5e7
call fcn.1800c3608
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 7
cmova rdx, qword [rbp + 0x10]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x18000a542
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a53d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a5ee
call fcn.1800c3608
xor edi, edi
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], di
mov rax, qword [rbp + 0x48]
cmp rax, 7
jbe 0x18000a591
lea rdx, [rax*2 + 2]
mov rax, r12
cmp rdx, 0x1000
jb 0x18000a588
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a5f5
mov rcx, r12
call fcn.1800c3608
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x18000a5cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a5c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a5fc
call fcn.1800c3608
add r15, 0x40
add r14, 0x40
cmp r15, qword [rsp + 0x58]
jne 0x18000a390
mov r12, qword [rsp + 0x60]
jmp 0x18000a605
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rcx, r13
test eax, eax
jne 0x18000a6cc
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180149f3c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000a8f0
lea rdx, str.Failed_to_send_request
mov rcx, rax
call fcn.18000a8f0
lea rdx, [0x180149f38]
mov rcx, rax
call fcn.18000a8f0
lea rdx, [0x18000aad0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x18000a6b8
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x18000a6b3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000a852
mov rcx, r8
call fcn.1800c3608
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
jmp 0x18000a218
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, r13
test eax, eax
jne 0x18000a709
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [0x180149f3c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000a8f0
lea rdx, str.Failed_to_receive_response
jmp 0x18000a657
mov dword [rbp + 4], edi
mov dword [rbp + 0xc], 4
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0xc]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 4]
xor r8d, r8d
mov edx, 0x20000013
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov eax, dword [rbp + 4]
mov dword [rsi + 0x20], eax
mov dword [rbp], edi
mov dword [rbp + 8], edi
mov ecx, 0x2000
call fcn.1800c3ccc
mov r15, rax
lea rdx, [rbp]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18000a801
movzx ebx, byte [rsp + 0x40]
nop word [rax + rax]
mov r8d, dword [rbp]
test r8d, r8d
je 0x18000a801
lea r9, [rbp + 8]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000a7ec
mov r14d, dword [rbp + 8]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x18000a7d5
lea rax, [rcx + r14]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x18000a7bc
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, r14
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + r14], 0
jmp 0x18000a7ec
mov qword [rsp + 0x20], r14
mov r9, r15
movzx r8d, bl
mov rdx, r14
mov rcx, rsi
call fcn.180006a60
lea rdx, [rbp]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18000a770
mov rcx, r15
call fcn.1800c3608
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [rsp + 0x68]
mov dword [rsi + 0x24], eax
mov rax, rsi
jmp 0x18000a227
lea rdx, [0x180149f3c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000a8f0
mov rcx, rax
lea rdx, str.Failed_to_Initialize_URL
jmp 0x18000a1ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3