Function at 0x14004a390
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 [0x14010b010]
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, [0x1400d9d10]
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.14005c1c0
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 0x14004a827
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 0x14004a82b
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 0x14004a82b
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 0x14004a53d
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 0x14004a82d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14004a82d
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 0x14004a601
lea edx, [rdi + 0x5c]
mov rcx, rbx
call fcn.14008d398
mov rcx, rbx
test rax, rax
je 0x14004a5dd
lea edx, [rdi + 0x5c]
call fcn.14008d398
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.140015b90
jmp 0x14004a82d
test eax, eax
je 0x14004a82d
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 0x14004a681
lea edx, [rax + 0x5c]
mov rcx, rbx
call fcn.14008d398
test rax, rax
je 0x14004a657
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
lea rdi, [rax + 1]
jmp 0x14004a65a
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.140015b90
xor edi, edi
mov eax, dword [rbp - 0x38]
test eax, eax
je 0x14004a894
lea rcx, [rax + 1]
call fcn.140061318
mov rsi, rax
mov r8d, dword [rbp - 0x38]
inc r8
xor edx, edx
mov rcx, rax
call fcn.14008d8a0
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 0x14004a713
lea edx, [rax + 0x5c]
mov rcx, rbx
call fcn.14008d398
test rax, rax
je 0x14004a6e4
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
lea rdi, [rax + 1]
jmp 0x14004a6e7
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.140015b90
xor edi, edi
jmp 0x14004a814
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 0x14004a730
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.14005c1c0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14004a78b
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 0x14004a7d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a7d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a9db
call fcn.140061310
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14004a814
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a80f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a9e1
call fcn.140061310
mov rcx, rsi
call fcn.140061310
cmp dword [rbp - 0x38], 0
jbe 0x14004a894
jmp 0x14004a620
mov r14, qword [rbp - 0x20]
xor edi, edi
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
test rax, rax
je 0x14004a850
mov edx, 0x5c
mov rcx, rbx
call fcn.14008d398
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.140015b90
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 0x14004a89d
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r14, r14
je 0x14004a8ab
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14004a8bf
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14004a8ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004a8fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004a9e7
call fcn.140061310
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 0x14004a94e
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14004a949
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a9cf
mov rcx, r8
call fcn.140061310
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x14004a994
inc rdx
mov rcx, qword [r13]
cmp rdx, 0x1000
jb 0x14004a98f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a9d5
mov rcx, r8
call fcn.140061310
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.1400612f0
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.140091d94
nop
call fcn.140091d94
nop
call fcn.140091d94
nop
call fcn.140091d94
nop
call fcn.140091d94
int3