Function at 0x14009f430
Capabilities:
Prepare http request
Read http header
Receive http response

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov qword [rsp + 0xb8], r8
mov rbx, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x80], r15
cmp qword [rcx + 8], r15
je 0x14009fbef
add rdx, 0x68
lea rcx, [rsp + 0xe8]
call fcn.1400041e0
lea rdx, [rsp + 0xe8]
cmp qword [rsp + 0x100], 8
cmovae rdx, qword [rsp + 0xe8]
mov r8d, 0x1bb
xor r9d, r9d
mov rcx, qword [rdi + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0xe8]
call fcn.1400053f0
test r13, r13
je 0x14009fc08
mov eax, dword [rbx + 0x10]
cmp eax, 1
jne 0x14009f4f0
lea rdx, str.POST
jmp 0x14009f504
lea rcx, [0x140125f28]
lea rdx, [0x140129260]
test eax, eax
cmove rdx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x268], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x278], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14009f522
lea rcx, [rsp + 0x268]
call fcn.140004fe0
nop
lea rdx, [rbx + 0x18]
lea rcx, [rsp + 0x90]
call fcn.1400041e0
lea r8, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae r8, qword [rsp + 0x90]
lea rdx, [rsp + 0x268]
cmp qword [rsp + 0x280], 8
cmovae rdx, qword [rsp + 0x268]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r12, rax
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x90]
call fcn.1400053f0
test r12, r12
je 0x14009fc24
xorps xmm0, xmm0
movups xmmword [rsp + 0x248], xmm0
movdqa xmm1, xmmword [0x140129460]
movdqu xmmword [rsp + 0x258], xmm1
mov word [rsp + 0x248], r15w
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0xc8]
call fcn.1400041e0
nop
lea rcx, [rsp + 0x150]
call fcn.14009d980
nop
lea r8, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae r8, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd8]
lea r9, [r8 + rcx*2]
lea rdx, [rsp + 0x1f8]
mov rcx, rax
call fcn.14009dbc0
nop
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x190]
call fcn.1400053f0
lea rcx, [rsp + 0x170]
call fcn.1400801d0
mov rcx, qword [rsp + 0x168]
test rcx, rcx
je 0x14009f68b
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
test rax, rax
je 0x14009f68b
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
lea rcx, [rsp + 0xc8]
call fcn.1400053f0
mov rsi, qword [rbx + 0x38]
mov rbx, qword [rsi]
nop
cmp rbx, rsi
je 0x14009f7b1
lea r8, [0x140128f78]
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x128]
call fcn.140084820
nop
lea rdx, [rbx + 0x30]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x14009f6d4
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140008370
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rcx, [rsp + 0x128]
call fcn.1400053f0
nop
mov r8d, 2
lea rdx, [0x140114844]
lea rcx, [rsp + 0x40]
call fcn.140008370
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x108], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x118], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea rdx, [rsp + 0x108]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 8
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rsp + 0x248]
call fcn.140008370
nop
lea rcx, [rsp + 0x108]
call fcn.1400053f0
nop
lea rcx, [rsp + 0x40]
call fcn.1400053f0
mov rbx, qword [rbx]
jmp 0x14009f6a0
lea r9, [rsp + 0x1f8]
cmp qword [rsp + 0x210], 0x10
cmovae r9, qword [rsp + 0x1f8]
lea rdx, [rsp + 0x248]
cmp qword [rsp + 0x260], 8
cmovae rdx, qword [rsp + 0x248]
mov qword [rsp + 0x30], r15
mov eax, dword [rsp + 0x208]
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 0x14009fc40
xor edx, edx
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14009fc5b
mov dword [rsp + 0x1d8], r15d
mov dword [rsp + 0x1dc], 4
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x1dc]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1d8]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14009fc76
xorps xmm0, xmm0
movups xmmword [rsp + 0x1e0], xmm0
mov rdi, r15
mov qword [rsp + 0x1e0], r15
mov rbx, r15
mov qword [rsp + 0x1e8], rbx
mov r14, r15
mov qword [rsp + 0x1f0], r15
mov dword [rsp + 0x1d0], r15d
mov dword [rsp + 0x1d4], r15d
lea rdx, [rsp + 0x1d0]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14009fcc0
mov r8d, dword [rsp + 0x1d0]
test r8d, r8d
je 0x14009f9e4
mov rax, rbx
sub rax, rdi
mov esi, r8d
lea rdx, [r8 + rax]
cmp rdx, rax
jae 0x14009f8e7
lea rbx, [rdx + rdi]
jmp 0x14009f938
jbe 0x14009f940
mov rax, r14
sub rax, rdi
cmp rdx, rax
jbe 0x14009f923
lea rcx, [rsp + 0x1e0]
call fcn.14009feb0
mov r14, qword [rsp + 0x1f0]
mov rbx, qword [rsp + 0x1e8]
mov rdi, qword [rsp + 0x1e0]
mov r8d, dword [rsp + 0x1d0]
jmp 0x14009f940
xor edx, edx
mov rcx, rbx
call fcn.1400a5270
add rbx, rsi
mov r8d, dword [rsp + 0x1d0]
mov qword [rsp + 0x1e8], rbx
mov edx, r15d
add rdx, rdi
lea r9, [rsp + 0x1d4]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14009fc92
add r15d, dword [rsp + 0x1d4]
mov esi, r15d
mov rcx, rbx
sub rcx, rdi
cmp rsi, rcx
jae 0x14009f986
lea rbx, [r15 + rdi]
mov qword [rsp + 0x1e8], rbx
jmp 0x14009f8a5
jbe 0x14009f8a5
mov rax, r14
sub rax, rdi
cmp rsi, rax
jbe 0x14009f9c4
mov rdx, rsi
lea rcx, [rsp + 0x1e0]
call fcn.14009feb0
mov r14, qword [rsp + 0x1f0]
mov rbx, qword [rsp + 0x1e8]
mov rdi, qword [rsp + 0x1e0]
jmp 0x14009f8a5
sub rsi, rcx
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.1400a5270
add rbx, rsi
mov qword [rsp + 0x1e8], rbx
jmp 0x14009f8a5
lea r15, vtable.ApplicationInsights::core::HttpResponse.0
mov qword [rsp + 0x218], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x228], xmm0
movdqa xmm1, xmmword [0x140129470]
movdqu xmmword [rsp + 0x238], xmm1
mov byte [rsp + 0x228], 0
mov eax, dword [rsp + 0x1d8]
mov dword [rsp + 0x220], eax
sub rbx, rdi
movups xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400800a0
lea rax, [rsp + 0x40]
mov qword [rsp + 0xc0], rax
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r9, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x240]
cmp rsi, rax
ja 0x14009faaa
lea rbx, [rsp + 0x228]
cmp rax, 0x10
cmovae rbx, qword [rsp + 0x228]
mov qword [rsp + 0x238], rsi
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call fcn.1400a4bc0
mov byte [rbx + rsi], 0
jmp 0x14009fabb
mov rdx, rsi
lea rcx, [rsp + 0x228]
call fcn.14009e870
nop
lea rcx, [rsp + 0x40]
call fcn.1400801d0
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x14009fcae
mov rax, qword [rcx]
lea rdx, [rsp + 0x218]
call qword [rax + InitCommonControls]
nop
mov qword [rsp + 0x218], r15
lea rcx, [rsp + 0x228]
call fcn.1400801d0
nop
test rdi, rdi
je 0x14009fb4a
sub r14, rdi
mov rax, rdi
cmp r14, 0x1000
jb 0x14009fb3e
add r14, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009fcb4
mov rdx, r14
mov rcx, rdi
call fcn.1400a2510
nop
mov rdx, qword [rsp + 0x210]
cmp rdx, 0x10
jb 0x14009fb8d
inc rdx
mov rcx, qword [rsp + 0x1f8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009fb88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14009fcba
call fcn.1400a2510
movdqa xmm0, xmmword [0x140129470]
movdqu xmmword [rsp + 0x208], xmm0
mov byte [rsp + 0x1f8], 0
lea rcx, [rsp + 0x248]
call fcn.1400053f0
nop
lea rcx, [rsp + 0x268]
call fcn.1400053f0
xor eax, eax
jmp 0x14009fbcc
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1400a24f0
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x60], 0xffffffff
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x60]
call fcn.1400a4ae8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x64]
call fcn.1400a4ae8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x68]
call fcn.1400a4ae8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x6c]
call fcn.1400a4ae8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x70]
call fcn.1400a4ae8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x74]
call fcn.1400a4ae8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x78]
call fcn.1400a4ae8
nop
call fcn.1400a1360
nop
call fcn.1400a93e0
nop
call fcn.1400a93e0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
lea rdx, [0x1401441b0]
lea rcx, [rsp + 0x7c]
call fcn.1400a4ae8
int3