Function at 0x180005a70
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x578]
sub rsp, 0x650
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180010010]
xor rax, rsp
mov qword [rbp + 0x540], rax
mov rdi, rcx
mov qword [rbp + 0xd8], rcx
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp + 0xc0], xmm0
mov byte [rbp + 0xb0], 0
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
mov r8d, 0x1bb
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.login.microsoftonline.com
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r12, rax
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x803000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, str.HTTP_1.1
lea r8, str._common_oauth2_v2.0_token
lea rdx, str.POST
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r14, rax
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], r13b
lea r8d, [r13 + 0xe]
lea rdx, str.refresh_token
lea rcx, [rbp + 0x40]
call fcn.1800079d0
nop
lea rdx, [0x180010a34]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x180005b91
lea rcx, [rbp + 0x40]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0xc
lea rdx, str.grant_type
lea rcx, [rbp + 0x20]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0xd
lea rdx, [0x18000cac0]
lea rcx, [rbp]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0xb
lea rdx, str.client_id
lea rcx, [rbp - 0x20]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [0x180011204]
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180005c90
lea rcx, [rbp - 0x40]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0xf
lea rdx, str.client_secret
lea rcx, [rbp - 0x60]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [0x180011268]
mov r8, rbx
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x180005d10
lea rcx, [rbp - 0x80]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r8d, 0xe
lea rdx, str.redirect_uri
lea rcx, [rsp + 0x60]
call fcn.180007860
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [0x1800112cc]
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x180005d96
lea rcx, [rsp + 0x40]
call fcn.180007860
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x180005e1c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005e17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005e17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180005e6f
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005e6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005e6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x180005ec0
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005ebb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005ebb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x180005f0f
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005f0a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005f0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x180005f5e
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005f59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005f59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180005fad
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005fa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005fa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x180005ffc
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005ff7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005ff7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp + 0x10], xmm0
mov byte [rbp], 0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x18000604b
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006046
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006046
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x20], 0
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x18000609a
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006095
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006095
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rdx, qword [rbp + 0x90]
lea rcx, [rbp + 0x68]
call fcn.180009030
mov rsi, rax
lea rax, [rbp + 0x90]
cmp rax, rsi
je 0x18000615f
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x180006122
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000611d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000611d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
movups xmm0, xmmword [rsi]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rbp + 0x80]
cmp rdx, 0x10
jb 0x1800061a0
inc rdx
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000619b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000619b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.Content_Type:_application_x_www_form_urlencoded__charsetUTF_8
lea rcx, [rbp + 0xe0]
call fcn.180001060
lea r9, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae r9, qword [rbp + 0x90]
mov eax, dword [rbp + 0xa0]
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
lea rdx, [rbp + 0xe0]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0xd8]
lea r8, [rbp + 0xd0]
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180006622
cmp dword [rbp + 0xd0], 0x194
je 0x180006622
xor edx, edx
mov r8d, 0x3e9
lea rcx, [rbp + 0x150]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x88], r13d
lea r9, [rbp + 0x88]
mov r8d, 0x3e8
lea rdx, [rbp + 0x150]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
lea rax, [rbp + 0x150]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180006280
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0xb0]
call fcn.180007860
test esi, esi
je 0x180006312
cmp dword [rbp + 0x88], 0x3e8
jne 0x180006312
xor edx, edx
mov r8d, 0x3e9
lea rcx, [rbp + 0x150]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x88], r13d
lea r9, [rbp + 0x88]
mov r8d, 0x3e8
lea rdx, [rbp + 0x150]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
lea rax, [rbp + 0x150]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x1800062f1
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0xb0]
call fcn.180007860
test esi, esi
jne 0x1800062a1
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 0x10
cmovae rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x180006558
mov rdx, rbx
inc rdx
cmp byte [rcx + rdx], 0
jne 0x180006350
inc rdx
xor r9d, r9d
xor r8d, r8d
call sym.GetNetInfoDll.dll_cJSON_ParseWithLengthOpts
mov rsi, rax
test rax, rax
je 0x180006558
xor r8d, r8d
lea rdx, str.access_token
mov rcx, rax
call fcn.1800030d0
test rax, rax
jne 0x180006460
mov rcx, rsi
call sym.GetNetInfoDll.dll_cJSON_Delete
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor r8d, r8d
lea rdx, [0x18000c4d8]
mov rcx, rdi
call fcn.1800079d0
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x1800063fc
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800063f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800063f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x18000670a
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006705
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006705
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rax + 0x20]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180006464
mov r8, rbx
lea rcx, [rbp + 0xb0]
call fcn.1800079d0
mov rcx, rsi
call sym.GetNetInfoDll.dll_cJSON_Delete
movups xmm0, xmmword [rbp + 0xb0]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0xc0]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp + 0xc0], xmm0
mov byte [rbp + 0xb0], 0
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x1800064f4
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800064ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800064ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x18000670a
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006705
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006705
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor r8d, r8d
lea rdx, [0x18000c4d8]
mov rcx, rdi
call fcn.1800079d0
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x1800065be
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800065b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800065b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x18000670a
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006705
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006705
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rbp + 0xb0]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0xc0]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rbp + 0xc0], xmm0
mov byte [rbp + 0xb0], 0
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x1800066ad
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800066a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800066a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x18000670a
inc rdx
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006705
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180006705
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000a084
mov rax, rdi
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.18000a060
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret