Function at 0x140002410
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x8a10]
mov eax, 0x8b10
call fcn.140089230
sub rsp, rax
movaps xmmword [rsp + 0x8b00], xmm6
mov rax, qword [0x1400c81d8]
xor rax, rsp
mov qword [rbp + 0x89f0], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
mov rbx, rcx
mov rsi, qword [rbp + 0x8a70]
lea rcx, [0x1400aa820]
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov qword [rsp + 0x58], r15
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rcx
mov dword [rsp + 0x60], 0x68
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], 0x100
lea rcx, [rbp + 0x1f0]
mov qword [rbp - 0x58], rcx
mov dword [rbp - 0x50], 0x400
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov eax, r15d
mov edx, 1
mov ecx, 0x1bb
cmp word [rbp - 0x7c], cx
cmove eax, edx
shl eax, 0x17
add eax, 0x100
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rbp + 0x1f0]
lea rdx, [0x1400aa868]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x140002530
mov dword [rsi], 0xfffffffd
jmp 0x140002768
mov rax, rdi
neg rax
sbb r8d, r8d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140002757
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne dil
mov dword [rsp + 0x48], 0x10
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x1400025b3
mov dword [rsi], 0xfffffffc
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x140002768
mov word [rbp - 0x1a], r15w
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x28]
call fcn.140095f28
mov dword [rsi], eax
test dil, dil
je 0x14000274a
cmp eax, 0xc8
jne 0x14000274a
mov edi, r15d
mov r12d, 0x8000
movss xmm6, dword [0x1400aa870]
nop
mov dword [rsp + 0x40], r15d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140002739
mov r8d, dword [rsp + 0x40]
cmp r8d, r12d
cmova r8d, r12d
mov dword [rsp + 0x40], r8d
lea r9, [rsp + 0x44]
lea rdx, [rbp + 0x9f0]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140002728
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14000270a
mov r9d, eax
mov rdx, qword [r14 + 8]
lea r8, [rbp + 0x9f0]
mov rcx, r14
call fcn.140001fb0
mov eax, dword [rsp + 0x44]
mov rcx, qword [0x1400caa68]
add rcx, rax
mov qword [0x1400caa68], rcx
xorps xmm0, xmm0
js 0x14000267c
cvtsi2ss xmm0, rcx
jmp 0x140002691
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x1400caa60]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400026a7
cvtsi2ss xmm1, rcx
jmp 0x1400026bc
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
mulss xmm0, xmm6
cvttss2si eax, xmm0
cmp eax, edi
jle 0x1400026ec
mov edi, eax
movsxd r9, eax
mov qword [rsp + 0x20], r15
mov edx, 0x3e9
lea r8d, [rdx + 0x19]
mov rcx, qword [0x1400caa50]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor edx, edx
mov rcx, qword [0x1400caa70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140002717
cmp dword [rsp + 0x40], r15d
ja 0x1400025f0
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov al, 1
jmp 0x14000276a
mov dword [rsi], 0xfffffff2
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x140002768
mov dword [rsi], 0xfffffff7
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x140002768
mov dword [rsi], 0xfffffff8
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
jmp 0x140002768
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
mov al, 1
jmp 0x14000276a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
nop
xor al, al
mov rcx, qword [rbp + 0x89f0]
xor rcx, rsp
call fcn.1400890e0
movaps xmm6, xmmword [rsp + 0x8b00]
add rsp, 0x8b10
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret