Function at 0x140002510
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x14005f040]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r12, r8
mov r13, rdx
mov r14, rcx
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0x118], rdx
mov qword [rsp + 0x120], r8
xor esi, esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x128], esi
mov dword [rsp + 0x110], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x40], 1
movabs rax, 0x4c42e6f6d7694ae4
mov qword [rsp + 0x50], rax
movabs rax, 0x3f26440907fa31b0
mov qword [rsp + 0x58], rax
movabs rax, 0x74a6c74b21980930
mov qword [rsp + 0x60], rax
movabs rax, 0x8ede9da621390c1e
mov qword [rsp + 0x68], rax
movabs rax, 0xc64a384ff6c0d96
mov qword [rsp + 0x70], rax
movabs rcx, 0x17675fd548c7e9c8
mov qword [rsp + 0x78], rcx
movabs rdi, 0x4c0ae698d7004ab3
mov qword [rsp + 0x1d0], rdi
movabs rbx, 0x3f06445907ae31e4
mov qword [rsp + 0x1d8], rbx
movabs rax, 0x74cbc72a21e00975
mov qword [rsp + 0x1e0], rax
movabs rax, 0x8ef19dc321550c6e
mov qword [rsp + 0x1e8], rax
movabs rax, 0xc64a3b4ff420da7
mov qword [rsp + 0x1f0], rax
mov qword [rsp + 0x1f8], rcx
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rsp + 0x1d0]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
xorps xmm1, xmmword [rsp + 0x1e0]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rsp + 0x1f0]
movdqa xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, rax
mov qword [rsp + 0xc8], rax
mov rdx, r13
lea rax, [r13 + 0x18]
mov qword [rsp + 0xd8], rax
cmp qword [rax], 7
jbe 0x1400026ba
mov rdx, qword [r13]
mov r8d, 0x50
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, rax
mov qword [rsp + 0xc0], rax
mov r8, r12
lea rax, [r12 + 0x18]
mov qword [rsp + 0xe0], rax
cmp qword [rax], 7
jbe 0x1400026ee
mov r8, qword [r12]
movabs rax, 0x4c0ae6ccd7454af4
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rbx
mov qword [rsp + 0x1d0], rdi
mov qword [rsp + 0x1d8], rbx
movdqa xmm0, xmmword [rsp + 0xb0]
xorps xmm0, xmmword [rsp + 0x1d0]
movdqa xmmword [rsp + 0xb0], xmm0
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rsp + 0xb0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
xorps xmm0, xmm0
movups xmmword [rsp + 0x130], xmm0
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x148], 0xf
mov byte [rsp + 0x130], 0
lea rdx, [rsp + 0x128]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov r8d, dword [rsp + 0x128]
test r8d, r8d
je 0x140002953
xorps xmm0, xmm0
lea eax, [r8 + 1]
mov edi, eax
movdqu xmmword [rsp + 0x1d0], xmm0
mov qword [rsp + 0x1e0], rsi
test eax, eax
je 0x140002852
cmp rdi, 0x1000
jb 0x140002819
lea rcx, [rax + 0x27]
cmp rcx, rdi
jbe 0x140002c43
call fcn.14004ab80
mov rcx, rax
test rax, rax
je 0x140002a85
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140002821
mov rcx, rdi
call fcn.14004ab80
mov qword [rsp + 0x1d0], rax
lea rbx, [rax + rdi]
mov qword [rsp + 0x1e0], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x1d8], rbx
mov r8d, dword [rsp + 0x128]
lea r9, [rsp + 0x110]
mov rdx, qword [rsp + 0x1d0]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140002903
mov ecx, dword [rsp + 0x110]
mov rax, qword [rsp + 0x1d0]
mov byte [rcx + rax], 0
mov edi, dword [rsp + 0x110]
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x148]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400028e5
lea rax, [rcx + rdi]
mov qword [rsp + 0x140], rax
lea rbx, [rsp + 0x130]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x130]
add rbx, rcx
mov r8d, edi
mov rdx, qword [rsp + 0x1d0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140002903
mov qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0x1d0]
mov rdx, rdi
lea rcx, [rsp + 0x130]
call fcn.140010cd0
nop
mov rcx, qword [rsp + 0x1d0]
test rcx, rcx
je 0x140002945
mov rdx, qword [rsp + 0x1e0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002940
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a85
call fcn.14004ae04
cmp dword [rsp + 0x128], 0
ja 0x1400027a4
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
movups xmmword [rsp + 0x170], xmm0
movups xmmword [rsp + 0x180], xmm0
movups xmmword [rsp + 0x190], xmm0
movups xmmword [rsp + 0x1a0], xmm0
movups xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1c0], rax
lea rcx, [rsp + 0x150]
call fcn.14000edd0
nop
lea r8, [rsp + 0x130]
cmp qword [rsp + 0x148], 0xf
cmova r8, qword [rsp + 0x130]
mov r9, qword [rsp + 0x140]
add r9, r8
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x150]
call fcn.14000f460
mov dword [rsp + 0x40], 3
lea rax, [rsp + 0xe8]
cmp r14, rax
je 0x140002a8c
mov rdx, qword [r14 + 0x18]
cmp rdx, 7
jbe 0x140002a55
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002a50
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002acb
mov rcx, r8
call fcn.14004ae04
mov qword [r14 + 0x18], 7
movups xmm0, xmmword [rsp + 0xe8]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0xf8]
movups xmmword [r14 + 0x10], xmm1
mov edx, 7
mov word [rsp + 0xe8], si
jmp 0x140002a94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rsp + 0x100]
cmp rdx, 7
jbe 0x140002ad8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ad2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ad2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004ae04
nop
jmp 0x140002af4
lea rcx, [rsp + 0x150]
call fcn.14000ece0
nop
mov rdx, qword [rsp + 0x148]
cmp rdx, 0xf
jbe 0x140002b48
inc rdx
mov rcx, qword [rsp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004ae04
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x148], 0xf
mov byte [rsp + 0x130], 0
mov rbx, qword [rsp + 0xd8]
mov rdx, qword [rbx]
cmp rdx, 7
jbe 0x140002bab
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002ba6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002c35
mov rcx, r8
call fcn.14004ae04
mov qword [r13 + 0x10], rsi
mov qword [rbx], 7
mov word [r13], si
mov rbx, qword [rsp + 0xe0]
mov rdx, qword [rbx]
cmp rdx, 7
jbe 0x140002bfe
lea rdx, [rdx*2 + 2]
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x140002bf9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002c3c
mov rcx, r8
call fcn.14004ae04
mov qword [r12 + 0x10], rsi
mov qword [rbx], 7
mov word [r12], si
mov rax, r14
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14004ab60
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
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 fcn.1400016d0
int3