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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.140271a80
sub rsp, rax
mov rax, qword [0x1403a05a0]
xor rax, rsp
mov qword [rbp + 0xf70], rax
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.VAuth_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x1400b76e4
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.vauth.top
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x1400b76db
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, str._updates_latest.txt
lea rdx, [0x140369848]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x1400b76d2
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400b76c9
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400b76c9
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r13b
mov dword [rsp + 0x44], r13d
nop dword [rax]
mov dword [rsp + 0x40], r13d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400b747a
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400b747a
cmp eax, 0xfff
jbe 0x1400b741b
mov eax, 0xfff
lea r9, [rsp + 0x44]
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400b746f
mov eax, dword [rsp + 0x44]
cmp rax, 0x1000
jae 0x1400b771a
mov byte [rsp + rax + 0x70], 0
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400b7456
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400a2420
cmp dword [rsp + 0x40], 0
ja 0x1400b73f0
mov r14, qword [rsp + 0x58]
test r14, r14
je 0x1400b755d
lea rdx, [0x140517da8]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rdx, qword [0x140517da8]
lea rcx, [rsp + 0x48]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
cmp rsi, 0x10
cmovae rcx, rbx
cmp r14, qword [0x140517db8]
jne 0x1400b74cf
mov r8, r14
call fcn.140276620
test eax, eax
je 0x1400b7696
lea rdx, [rsp + 0x48]
cmp rsi, 0x10
cmovae rdx, rbx
mov r8, r14
lea rcx, [0x140517da8]
call fcn.1400a22c0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140522210], eax
jle 0x1400b754b
lea rcx, [0x140522210]
call fcn.1402713ec
cmp dword [0x140522210], 0xffffffff
jne 0x1400b754b
mov qword [0x1405221e8], r13
movdqa xmm0, xmmword [0x14036e380]
movdqu xmmword [0x1405221f8], xmm0
lea rcx, [0x1402bd0f0]
call fcn.140271770
lea rcx, [0x140522210]
call fcn.14027138c
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.News_has_been_updated.
jmp 0x1400b761e
lea rcx, [0x140517da8]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140517da8]
cmp qword [0x140517db8], 0x23
jne 0x1400b7598
mov r8d, reloc.WLDAP32.dll_Ordinal_35
lea rdx, str.No_updates_available_at_the_moment.
call fcn.140276620
test eax, eax
je 0x1400b768c
mov r8d, reloc.WLDAP32.dll_Ordinal_35
lea rdx, str.No_updates_available_at_the_moment.
lea rcx, [0x140517da8]
call fcn.1400a22c0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140522210], eax
jle 0x1400b7611
lea rcx, [0x140522210]
call fcn.1402713ec
cmp dword [0x140522210], 0xffffffff
jne 0x1400b7611
mov qword [0x1405221e8], r13
movdqa xmm0, xmmword [0x14036e380]
movdqu xmmword [0x1405221f8], xmm0
lea rcx, [0x1402bd0f0]
call fcn.140271770
lea rcx, [0x140522210]
call fcn.14027138c
mov r8d, reloc.WLDAP32.dll_Ordinal_26
lea rdx, str.Updates_have_been_cleared.
lea rbx, [0x1405221e8]
mov rcx, rbx
call fcn.1400a22c0
cmp qword [0x140522200], 0x10
cmovae rbx, qword [0x1405221e8]
lea rcx, reloc.WS2_32.dll_WSAStartup
movss xmm1, dword [0x14036e1d0]
mov qword [0x140521ff8], rbx
mov qword [0x140521fe8], rcx
mov dword [0x14052200c], r13d
mov dword [0x140521ff0], 0
movss dword [0x140517dec], xmm1
mov dword [0x140522000], 0
mov dword [0x140522004], 0
call fcn.1400a8150
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x48]
cmp rsi, 0x10
jb 0x1400b76c9
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400b76c1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b7714
mov rcx, rbx
call fcn.1402711ec
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.140270e60
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140290dbc
nop
call fcn.140270f88
nop