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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
xor r13d, r13d
lea rcx, [rsp + 0x40]
mov r12, rdx
mov dword [rbp + 0x3f0], r13d
xor edx, edx
mov dword [rbp + 0x400], r13d
mov ebx, r13d
lea edi, [r13 + 0x68]
mov r8d, edi
call fcn.14002f820
mov ecx, 0x100
mov dword [rsp + 0x40], edi
lea rax, [rbp - 0x50]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x1b0]
mov dword [rbp - 0x70], ecx
xor r8d, r8d
mov qword [rbp - 0x78], rax
xor edx, edx
lea rcx, str.http:__api.aselock.com.cn_f_D1.bin
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x140007260
lea rcx, [0x14003ca00]
call fcn.140007140
xor eax, eax
jmp 0x1400074fb
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
lea rcx, str.WinHTTP_Example_1.0
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
jne 0x14000728b
lea rcx, [0x14003ca38]
jmp 0x140007254
movzx r8d, word [rsp + 0x64]
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
jne 0x1400072c1
lea rcx, [0x14003ca48]
call fcn.140007140
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140007259
cmp dword [rsp + 0x54], 2
lea rdx, [0x14003ca58]
mov r8, qword [rbp - 0x78]
mov eax, r13d
mov ecx, 0x800000
cmove eax, ecx
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov rcx, r15
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
jne 0x140007315
lea rcx, [0x14003ca60]
call fcn.140007140
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1400072b6
mov r9d, 4
mov dword [rbp + 0x408], 0x3300
lea r8, [rbp + 0x408]
mov rcx, r14
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r13d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x140007369
lea rcx, [0x14003ca78]
call fcn.140007140
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140007384
lea rcx, [0x14003ca90]
jmp 0x1400074c2
lea rdx, [rbp + 0x3f0]
mov dword [rbp + 0x3f0], r13d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400074bb
mov eax, dword [rbp + 0x3f0]
test eax, eax
je 0x1400074c7
lea ecx, [rax + 1]
call fcn.140017adc
mov rdi, rax
test rax, rax
je 0x140007499
mov r8d, dword [rbp + 0x3f0]
xor edx, edx
inc r8d
mov rcx, rax
call fcn.14002f820
mov r8d, dword [rbp + 0x3f0]
lea r9, [rbp + 0x400]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140007483
mov edx, dword [rbp + 0x400]
mov rcx, rbx
add rdx, qword [r12]
call fcn.140017a08
test rax, rax
je 0x14000744c
mov rcx, qword [r12]
mov rdx, rdi
mov r8d, dword [rbp + 0x400]
add rcx, rax
mov rbx, rax
call fcn.14002f180
mov eax, dword [rbp + 0x400]
mov rcx, rdi
add qword [r12], rax
call fcn.140012550
cmp dword [rbp + 0x3f0], r13d
ja 0x140007384
jmp 0x1400074c7
mov ecx, 2
call fcn.140016990
mov rcx, rax
lea rdx, str.Memory_allocation_failed_n
call fcn.1400070fc
mov rcx, rdi
call fcn.140012550
test rbx, rbx
je 0x140007259
mov rcx, rbx
call fcn.140012550
jmp 0x140007259
lea rcx, [0x14003cad8]
call fcn.140007140
mov rcx, rdi
call fcn.140012550
jmp 0x1400074c7
mov ecx, 2
call fcn.140016990
mov rcx, rax
lea rdx, str.Out_of_memory_n
call fcn.1400070fc
mov dword [rbp + 0x3f0], r13d
jmp 0x1400074c7
lea rcx, [0x14003caa8]
call fcn.140007140
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [r12], r13
jne 0x1400074f8
test rbx, rbx
je 0x1400074f8
mov rcx, rbx
call fcn.140012550
mov rbx, r13
mov rax, rbx
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret