Function at 0x140002bc0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x8b40
call fcn.140089230
sub rsp, rax
mov rax, qword [0x1400c81d8]
xor rax, rsp
mov qword [rsp + 0x8b30], rax
mov r13, r9
mov r12d, r8d
mov qword [rsp + 0x58], rdx
mov rsi, qword [rsp + 0x8ba0]
mov qword [rsp + 0x60], rsi
mov r15, qword [rsp + 0x8ba8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0xf0], rax
xor bl, bl
lea rax, [0x1400aa820]
mov qword [rsp + 0x80], rax
xor edi, edi
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x44], 0x800
mov dword [rsp + 0x48], 3
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140002c80
mov rax, qword [r15]
mov qword [r15 + 0x10], rdi
mov byte [rax], bl
mov dword [rsp + 0x90], 0x68
lea rax, [rsp + 0x130]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], 0x100
lea rax, [rsp + 0x330]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], 0x400
lea r9, [rsp + 0x90]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
movzx ebx, bl
mov eax, 1
mov r14d, 0x1bb
cmp word [rsp + 0xb4], r14w
cmove ebx, eax
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400aa828]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x100], rax
test rax, rax
jne 0x140002d2d
mov dword [rsi], 0xffffffff
jmp 0x1400030a3
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x50]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x72]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r8d, 0x50
test bl, bl
cmovne r8w, r14w
xor r9d, r9d
lea rdx, [rsp + 0x130]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x108], rax
test rax, rax
jne 0x140002da7
mov dword [rsi], 0xfffffffe
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x1400030a3
movzx eax, bl
shl eax, 0x17
add eax, 0x100
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x330]
lea rdx, str.POST
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x110], rax
test rax, rax
jne 0x140002e19
mov dword [rsi], 0xfffffffd
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x1400030a3
mov rax, r13
neg rax
sbb r8d, r8d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9, qword [rsp + 0x58]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140003080
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne r12b
mov dword [rsp + 0x4c], 0x10
xor r13d, r13d
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x118]
xor r8d, r8d
lea edx, [r13 + 0x13]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140002ebb
mov dword [rsi], 0xfffffffc
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x1400030a3
mov word [rsp + 0x126], r13w
mov edx, 0x40000
mov rcx, r15
call fcn.1400031c0
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rsp + 0x118]
call fcn.140095f28
mov dword [rsi], eax
test r12b, r12b
je 0x14000303e
cmp eax, 0xc8
jne 0x14000303e
mov r12d, 0x8000
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000301b
mov r8d, dword [rsp + 0x40]
cmp r8d, r12d
cmova r8d, r12d
mov dword [rsp + 0x40], r8d
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0xb30]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140002ff5
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x140002f87
lea rdx, [rsp + 0xb30]
mov rcx, r15
call fcn.1400030d0
test al, al
je 0x140002fcf
xor edx, edx
mov rcx, qword [0x1400caa70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140002fa9
cmp dword [rsp + 0x40], 0
ja 0x140002f01
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov al, 1
jmp 0x1400030a5
mov dword [rsi], 0xfffffff2
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x1400030a3
mov dword [rsi], 0xfffffffa
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x1400030a3
mov dword [rsi], 0xfffffff7
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x1400030a3
mov dword [rsi], 0xfffffff8
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x1400030a3
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov al, 1
jmp 0x1400030a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, r14
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov rcx, rdi
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
xor al, al
mov rcx, qword [rsp + 0x8b30]
xor rcx, rsp
call fcn.1400890e0
add rsp, 0x8b40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret