Function at 0x14004a090
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rbp + 0x30], rax
movzx r15d, r9w
mov r14, r8
mov rax, rdx
mov qword [rsp + 0x48], rdx
mov qword [rbp - 0x60], rdx
mov rdi, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0xb0]
mov rbx, qword [rbp + 0xb8]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x30], rbx
mov r13, qword [rbp + 0xc0]
mov qword [rbp - 0x28], r13
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rdx], r12
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], 7
mov word [rdx], r12w
xor r8d, r8d
lea rdx, [0x1400d8d10]
mov rcx, rax
call sym.AsusAppService.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
mov rdx, rbx
lea rcx, [rsp + 0x60]
call sym.AsusAppService.exe_private:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Construct_lv_contents_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64
nop
call fcn.140001760
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x10]
call fcn.14005bea0
nop
mov dword [rbp - 0x38], r12d
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x20], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_83.0.4103.97_Safari_537.36
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x50], rax
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceOOBECheckFlow.cpp
test rax, rax
je 0x14004a527
mov dword [rsp + 0x20], 0x7530
xor edx, edx
mov r9d, 0x7530
mov r8d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor r9d, r9d
movzx r8d, r15w
mov rdx, r14
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
je 0x14004a52b
mov dword [rsp + 0x30], 0x800000
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
test rax, rax
je 0x14004a52b
mov dword [rbp - 0x20], 0x3301
mov r9d, 4
lea r8, [rbp - 0x20]
lea edx, [r9 + 0x1b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9, r13
cmp qword [r13 + 0x18], 0x10
jb 0x14004a23d
mov r9, qword [r13]
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov eax, dword [r13 + 0x10]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14004a52d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14004a52d
mov dword [rbp - 0x20], edi
mov dword [rbp - 0x38], 4
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [rbp - 0x20], 0xc8
je 0x14004a301
lea edx, [rdi + 0x5c]
mov rcx, rbx
call fcn.14008d088
mov rcx, rbx
test rax, rax
je 0x14004a2dd
lea edx, [rdi + 0x5c]
call fcn.14008d088
lea rcx, [rax + 1]
mov eax, dword [rbp - 0x20]
mov dword [rsp + 0x20], eax
lea r9, str.Request_error__status_code___u
lea r8, str.SendRequestToGetBody
mov edx, 0x2e0
call fcn.140015a30
jmp 0x14004a52d
test eax, eax
je 0x14004a52d
lea rbx, str.C:Userspaul1_leeDesktopAsusAppServiceAsusAppServiceAsusAppServiceOOBECheckFlow.cpp
mov r15, qword [rsp + 0x48]
nop word [rax + rax]
mov dword [rbp - 0x38], edi
lea rdx, [rbp - 0x38]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x14004a381
lea edx, [rax + 0x5c]
mov rcx, rbx
call fcn.14008d088
test rax, rax
je 0x14004a357
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
lea rdi, [rax + 1]
jmp 0x14004a35a
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Error__u_in_WinHttpQueryDataAvailable.
lea r8, str.SendRequestToGetBody
mov edx, 0x30b
mov rcx, rdi
call fcn.140015a30
xor edi, edi
mov eax, dword [rbp - 0x38]
test eax, eax
je 0x14004a594
lea rcx, [rax + 1]
call fcn.140061008
mov rsi, rax
mov r8d, dword [rbp - 0x38]
inc r8
xor edx, edx
mov rcx, rax
call fcn.14008d590
lea r9, [rbp - 0x18]
mov r8d, dword [rbp - 0x38]
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14004a413
lea edx, [rax + 0x5c]
mov rcx, rbx
call fcn.14008d088
test rax, rax
je 0x14004a3e4
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
lea rdi, [rax + 1]
jmp 0x14004a3e7
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Error__u_in_WinHttpReadData.
lea r8, str.SendRequestToGetBody
mov edx, 0x321
mov rcx, rdi
call fcn.140015a30
xor edi, edi
jmp 0x14004a514
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x14004a430
mov rdx, rsi
lea rcx, [rbp + 0x10]
call sym.AsusAppService.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x80]
call sym.AsusAppService.exe_private:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Construct_lv_contents_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64
nop
call fcn.140001760
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x58]
call fcn.14005bea0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14004a48b
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, r15
call sym.AsusAppService.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14004a4d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a4d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a6db
call fcn.140061000
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14004a514
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a50f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a6e1
call fcn.140061000
mov rcx, rsi
call fcn.140061000
cmp dword [rbp - 0x38], 0
jbe 0x14004a594
jmp 0x14004a320
mov r14, qword [rbp - 0x20]
xor edi, edi
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
test rax, rax
je 0x14004a550
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d088
lea rbx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Error__d_has_occurred.
lea r8, str.SendRequestToGetBody
mov edx, 0x335
mov rcx, rbx
call fcn.140015a30
mov r8d, 0xd
lea rdx, str.ERROR_REQUEST
mov r15, qword [rsp + 0x48]
mov rcx, r15
call sym.AsusAppService.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64__unsigned_long_long_unsigned___int64_____ptr64
test r12, r12
je 0x14004a59d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r14, r14
je 0x14004a5ab
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14004a5bf
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14004a5ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a5fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a6e7
call fcn.140061000
mov qword [rbp], rdi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], di
mov rbx, qword [rsp + 0x58]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14004a64e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004a649
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a6cf
mov rcx, r8
call fcn.140061000
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x14004a694
inc rdx
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x14004a68f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a6d5
mov rcx, r8
call fcn.140061000
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], 0xf
mov byte [r13], 0
mov rax, r15
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140060fe0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140091a84
nop
call fcn.140091a84
nop
call fcn.140091a84
nop
call fcn.140091a84
nop
call fcn.140091a84
int3