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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx ebp, r9w
mov rsi, r8
mov rax, rdx
mov rbx, rcx
mov r15, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
setne r12b
test rax, rax
jne 0x140018ae1
mov rcx, qword [rsp + 0xa8]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0xf1
call fcn.14001d608
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
test r12b, r12b
je 0x140018e06
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
mov dword [rsp + 0x44], 0x800
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x50]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x140018b41
mov rcx, qword [rsp + 0xa8]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0xfd
call fcn.14001d608
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
test r12b, r12b
je 0x140018e06
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
xor r9d, r9d
movzx r8d, bp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbp, rax
test rax, rax
setne r14b
xor esi, esi
test rax, rax
jne 0x140018bb0
mov rcx, qword [rsp + 0xa8]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x107
call fcn.14001d608
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
test r14b, r14b
je 0x140018b98
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test r12b, r12b
je 0x140018e06
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
mov dword [rsp + 0x30], 0x800100
mov qword [rsp + 0x28], r13
xor r13d, r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, r15
lea rdx, [0x14005c818]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
setne r15b
test rax, rax
jne 0x140018c44
mov rcx, qword [rsp + 0xa8]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x113
call fcn.14001d608
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
test r15b, r15b
je 0x140018c1d
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test r14b, r14b
je 0x140018c2c
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test r12b, r12b
je 0x140018e06
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
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, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140018cb9
mov rcx, qword [rsp + 0xa8]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x11d
call fcn.14001d608
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
test r15b, r15b
je 0x140018c9b
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test r14b, r14b
je 0x140018caa
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140018d19
mov rcx, qword [rsp + 0xa8]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x123
call fcn.14001d608
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
test r15b, r15b
je 0x140018cfb
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test r14b, r14b
je 0x140018d0a
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140018d9d
mov rcx, qword [rsp + 0xa8]
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x12c
call fcn.14001d608
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
test r15b, r15b
je 0x140018d82
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test r14b, r14b
je 0x140018d91
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
cmp dword [rsp + 0x40], 0xc8
je 0x140018dfb
mov rcx, qword [rsp + 0xa8]
mov r9d, 0x80004005
lea r8, str.D:_a_work1_sEosAppEosAppLibEosToolUpdater.cpp
mov edx, 0x132
call fcn.1400080d4
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
test r15b, r15b
je 0x140018de0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
test r14b, r14b
je 0x140018def
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
jmp 0x140018e06
mov qword [rbx], rdi
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rsi
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400521d0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret