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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x14003f190]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov r15, r9
mov r13, r8
mov qword [rsp + 0x50], rdx
mov rbx, rcx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x38], r9
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov rsi, r9
cmp qword [r9 + 0x18], 0x10
jb 0x140003f7a
mov rsi, qword [r9]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140003f81
lea rcx, [rbp + 8]
call fcn.140003e10
nop
mov rdx, r13
lea rcx, [rbp - 0x18]
call fcn.140003e10
nop
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x40], 1
mov dword [rbp - 0x40], r14d
mov dword [rbp - 0x20], r14d
mov r12, r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000429e
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
mov r8d, 0x1bb
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x14000429e
lea r8, [rbp - 0x18]
cmp qword [rbp], 8
cmovae r8, qword [rbp - 0x18]
mov dword [rsp + 0x30], 0x800000
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, str.POST
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x14000429e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9, rsi
mov r8d, 0xffffffff
lea rdx, [0x140030fb0]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000429e
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000429e
xor esi, esi
nop dword [rax]
nop word [rax + rax]
mov dword [rbp - 0x40], esi
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1400040d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.140001380
mov ecx, dword [rbp - 0x40]
inc ecx
call fcn.140028044
mov rdi, rax
mov r8d, dword [rbp - 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x20]
mov r8d, dword [rbp - 0x40]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140004127
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__u_in_WinHttpReadData._n
call fcn.140001380
jmp 0x14000427d
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x140004140
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000abc0
nop
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140004165
mov r8, qword [rbx]
mov r9, qword [rbx + 0x10]
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14000b870
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or dword [rsp + 0x40], 2
lea rax, [rsp + 0x78]
cmp rbx, rax
je 0x14000420b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400041ed
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400041e0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004290
mov rcx, r8
call fcn.140027ff0
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x78], 0
jmp 0x14000420f
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140004244
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000423e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004290
call fcn.140027ff0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14000427d
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004278
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004297
call fcn.140027ff0
mov rcx, rdi
call fcn.140027ff0
cmp dword [rbp - 0x40], 0
jbe 0x1400042b7
jmp 0x1400040b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__d_has_occurred._n
call fcn.140001380
test r14, r14
je 0x1400042c0
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r12, r12
je 0x1400042ce
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400042df
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp]
cmp rdx, 8
jb 0x140004322
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000431d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000431d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027ff0
xor esi, esi
mov qword [rbp - 8], rsi
mov qword [rbp], 7
mov word [rbp - 0x18], si
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140004377
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004372
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004372
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027ff0
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], 7
mov word [rbp + 8], si
mov rdi, qword [rsp + 0x50]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400043c6
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400043c1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000448a
mov rcx, r8
call fcn.140027ff0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x140004410
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x14000440b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004491
mov rcx, r8
call fcn.140027ff0
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], 0xf
mov byte [r13], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140004457
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140004452
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004498
mov rcx, r8
call fcn.140027ff0
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov rax, rbx
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.140027fd0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3