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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x14003a020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], r9
xor r12d, r12d
mov dword [rsp + 0x40], r12d
lea rcx, [rbp - 0x28]
call fcn.1400021f0
nop
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.1400021f0
nop
mov qword [r15], r12
mov qword [r15 + 0x10], r12
lea r13d, [r12 + 0xf]
mov qword [r15 + 0x18], r13
mov byte [r15], r12b
mov dword [rsp + 0x40], 1
mov dword [rbp - 0x68], r12d
mov dword [rbp - 0x50], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.xxyy
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400025ea
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
xor r9d, r9d
movzx r8d, bx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
xor ebx, ebx
test rax, rax
je 0x1400025d9
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae r8, qword [rbp - 0x48]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, [0x140034630]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
je 0x1400025d0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400025c7
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400025c7
mov dword [rbp - 0x68], ebx
lea rdx, [rbp - 0x68]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp - 0x68]
inc ecx
call fcn.140009a78
mov r14, rax
mov r8d, dword [rbp - 0x68]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.14000ba30
lea r9, [rbp - 0x50]
mov r8d, dword [rbp - 0x68]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400025b9
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], bl
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [r14 + rbx], 0
jne 0x1400024c9
lea rcx, [rsp + 0x48]
cmp rbx, 0xf
ja 0x1400024f5
mov qword [rsp + 0x58], rbx
mov r8, rbx
mov rdx, r14
call fcn.14000b380
mov byte [rsp + rbx + 0x48], 0
jmp 0x140002501
mov r9, r14
mov rdx, rbx
call fcn.14000631c
nop
lea r8, [rsp + 0x48]
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.140005b58
xor ebx, ebx
cmp r15, rax
je 0x140002528
mov r8b, bl
mov rdx, rax
mov rcx, r15
call fcn.140005388
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140002564
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000255f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026af
call fcn.1400092e0
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400025b1
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026b5
call fcn.1400092e0
mov rcx, r14
call fcn.1400092e0
cmp dword [rbp - 0x68], ebx
ja 0x140002464
mov r14, qword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r13d, 0xf
jmp 0x1400025ec
xor ebx, ebx
lea rcx, [rbp - 0x48]
call fcn.140004f58
nop
lea rcx, [rbp - 0x28]
call fcn.140004f58
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140002636
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140002631
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400026a3
mov rcx, r8
call fcn.1400092e0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r13
mov byte [rsi], bl
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140002676
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002671
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400026a9
mov rcx, r8
call fcn.1400092e0
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r13
mov byte [rdi], bl
mov rax, r15
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400092c0
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140010250
nop
call fcn.140010250
nop
call fcn.140010250
nop
call fcn.140010250
int3