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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10d8
call fcn.1400e3200
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1050], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp + 0xfe0], rdx
mov qword [rbp + 0xfe8], r8
and dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.winhttp.dll_WinHttpOpen
test rax, rax
je 0x1400105b3
mov rdi, rax
lea r8, [rbp + 0xfdc]
mov dword [r8], 4
push 0x54
pop rdx
push 4
pop r9
mov rcx, rax
call sub.winhttp.dll_WinHttpSetOption
lea rax, [0x1400e8a32]
lea rdx, [rbp - 0x40]
mov qword [rdx], rax
mov rcx, qword [rdx]
movabs rax, 0xfe2777287acda8
mov qword [rdx], rax
lea rbx, [rbp - 0x40]
mov rdx, qword [rbx]
call fcn.1400061dc
and dword [rbx + 8], 0
and qword [rbx], 0
mov r10b, 1
xor r9d, r9d
lea rcx, [0x1400ec605]
movabs rdx, 0x743987790780a500
push 8
pop r8
test r10b, 1
je 0x14001030f
movzx r10d, byte [r9 + rcx]
or r10, rdx
xor r10, qword [rax + r9]
mov qword [rbp + r9 - 0x40], r10
xor r10d, r10d
mov r9, r8
jmp 0x1400102f0
push 8
pop rdx
cmp rdx, 0xb
ja 0x140010340
movzx r8d, byte [rdx + rcx + 2]
shl r8d, 0x10
movzx r9d, word [rdx + rcx]
add r8d, r9d
add r8d, 0xde000000
xor r8d, dword [rax + rdx]
mov dword [rbp + rdx - 0x40], r8d
add rdx, 4
jmp 0x140010312
lea rbx, [rbp - 0x40]
mov eax, dword [rbx + 8]
lea rdx, [rbp + 0x1018]
mov dword [rdx + 8], eax
mov rax, qword [rbx]
mov qword [rdx], rax
lea r14, [rbp + 0xfc0]
push 0xc
pop r8
mov rcx, r14
call fcn.140002357
mov rdx, qword [r14 + 8]
mov r8, qword [r14 + 0x10]
mov rcx, rbx
mov qword [rbp + 0x1040], rdx
call fcn.140010d00
mov rdx, qword [rbp - 0x38]
mov rcx, rdi
mov qword [rbp + 0x1048], rdx
mov r8w, 0x1bb
xor r9d, r9d
call sub.winhttp.dll_WinHttpConnect
mov rbx, rax
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp + 0x1048]
call fcn.1400029e8
test rbx, rbx
je 0x140010602
lea rax, [rbp + 0xfe0]
lea rcx, [rbp + 0x1008]
mov qword [rcx], rax
lea rax, [rbp + 0xff0]
mov qword [rax], rcx
lea rcx, [0x140104018]
lea rdx, [rbp - 0x40]
mov qword [rdx], rcx
push 1
pop rcx
mov qword [rdx + 8], rcx
and qword [rdx + 0x20], 0
lea r8, [0x1400d8b74]
mov qword [rax + 8], r8
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rcx
lea rcx, [rbp + 0x1018]
call fcn.1400042e4
lea rcx, [rbp + 0x1018]
mov rax, qword [rcx]
mov qword [rbp + 0x1038], rax
mov rax, qword [rcx + 8]
mov qword [rbp + 0x1048], rax
mov r14, qword [rcx + 0x10]
lea rdx, [0x140105c17]
push 3
pop r8
call fcn.140010d00
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1030], rax
lea rcx, [rbp - 0x40]
mov rdx, qword [rbp + 0x1048]
mov r8, r14
call fcn.140010d00
mov r8, qword [rbp - 0x38]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0x800104
mov rcx, rbx
mov rdx, qword [rbp + 0x1030]
mov qword [rbp + 0x1010], r8
xor r9d, r9d
call sub.winhttp.dll_WinHttpOpenRequest
mov r14, rax
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp + 0x1010]
call fcn.1400029e8
mov rcx, qword [rbp + 0x1018]
mov rdx, qword [rbp + 0x1030]
call fcn.1400029e8
lea r8, [0x1400ec614]
push 0x1f
pop rdx
push 4
pop r9
mov rcx, rdi
call sub.winhttp.dll_WinHttpSetOption
test r14, r14
je 0x140010659
mov r15, qword [rbp + 0xfe0]
mov r12, qword [rbp + 0xfe8]
lea rcx, [rbp + 0xff0]
call fcn.1400b74fe
lea rcx, [rbp + 0xff0]
mov rdx, r15
mov r8, r12
call fcn.14001e294
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.winhttp.dll_WinHttpSendRequest
test eax, eax
je 0x14001071e
mov rcx, r14
xor edx, edx
call sub.winhttp.dll_WinHttpReceiveResponse
test eax, eax
je 0x140010757
lea r15, [rbp + 0x1018]
and qword [r15], 0
mov qword [r15 + 8], 1
and qword [r15 + 0x10], 0
lea r12, [rbp + 0x1008]
and dword [r12], 0
lea r13, [rbp - 0x40]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.1400e46f0
mov rcx, r14
mov rdx, r13
mov r8d, 0x1000
mov r9, r12
call sub.winhttp.dll_WinHttpReadData
test eax, eax
je 0x1400106b8
mov r8d, dword [rbp + 0x1008]
test r8d, r8d
je 0x1400106b8
cmp r8d, 0x1001
jae 0x140010807
mov rcx, r15
mov rdx, r13
call fcn.14001e294
jmp 0x14001055d
lea rdx, [0x1400ec71f]
lea rcx, [rbp - 0x40]
push 0x1b
pop r8
call fcn.14001019c
push 0x18
pop rcx
push 8
pop rdx
call fcn.14000435c
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x1400ec650]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1400107f2
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rdx, [0x1400ec70e]
lea rcx, [rbp - 0x40]
push 0x11
pop r8
call fcn.14001019c
push 0x18
pop rcx
push 8
pop rdx
call fcn.14000435c
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x1400ec650]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1400107df
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rdx, str.Failed_to_open_requestFailed_to_connectFailed_to_open_HTTP_sessionsrcmain.rs
lea rcx, [rbp - 0x40]
push 0x16
pop r8
call fcn.14001019c
push 0x18
pop rcx
push 8
pop rdx
call fcn.14000435c
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x1400ec650]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1400107cc
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
mov rax, qword [rbp + 0x1028]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp + 0x1018]
movups xmmword [rsi], xmm0
mov rcx, qword [rbp + 0xff0]
mov rdx, qword [rbp + 0xff8]
call fcn.1400b7df2
mov rcx, qword [rbp + 0x1038]
mov rdx, qword [rbp + 0x1048]
call fcn.1400b7df2
mov rcx, qword [rbp + 0xfc0]
mov rdx, qword [rbp + 0x1040]
jmp 0x1400107ed
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rdx, str.Failed_to_send_request
lea rcx, [rbp - 0x40]
push 0x16
pop r8
call fcn.14001019c
push 0x18
pop rcx
push 8
pop rdx
call fcn.14000435c
jmp 0x14001078e
mov rcx, r14
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rbx
call sub.winhttp.dll_WinHttpCloseHandle
mov rcx, rdi
call sub.winhttp.dll_WinHttpCloseHandle
lea rdx, str.Failed_to_receive_responsesrc_send_post_request_new.rs
lea rcx, [rbp - 0x40]
push 0x1a
pop r8
call fcn.14001019c
push 0x18
pop rcx
push 8
pop rdx
call fcn.14000435c
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
mov qword [rsi + 8], rax
lea rax, [0x1400ec650]
mov qword [rsi + 0x10], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rcx, qword [rbp + 0xff0]
mov rdx, qword [rbp + 0xff8]
call fcn.1400b7df2
mov rcx, qword [rbp + 0x1038]
mov rdx, qword [rbp + 0x1048]
call fcn.1400b7df2
mov rdx, qword [rbp + 0x1040]
mov rcx, qword [rbp + 0xfc0]
call fcn.1400b7df2
nop
add rsp, 0x10d8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x1400ec6e0]
mov edx, 0x1000
mov rcx, r8
mov r8, rax
call fcn.1400e74c0
ud2