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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x188
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rcx + 0x40], r15d
test r9, r9
je 0x1400e608b
mov qword [r9], r15
mov rax, qword [rsp + 0x1f0]
test rax, rax
je 0x1400e609b
mov dword [rax], r15d
mov ebp, r15d
mov dword [rsp + 0x1d0], r15d
lea rax, vtable.CSABUnicodeString.0
mov qword [rsp + 0x48], rax
mov rax, r15
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
mov r12, r15
mov qword [rsp + 0x50], r15
mov rcx, 0xffffffffffffffff
test rdi, rdi
je 0x1400e60e0
mov rbx, rcx
inc rbx
cmp byte [rdx + rbx], al
jne 0x1400e60d6
jmp 0x1400e60e3
mov rbx, r15
lea rsi, [rbx + 1]
test rsi, rsi
je 0x1400e6117
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov r12, rax
mov qword [rsp + 0x50], rax
mov rax, rsi
mov qword [rsp + 0x58], rax
mov rcx, 0xffffffffffffffff
test rdi, rdi
je 0x1400e61b1
cmp rbx, 0xffffffffffffffff
jne 0x1400e6139
mov rbx, rcx
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], bpl
jne 0x1400e6130
lea rsi, [rbx + 1]
cmp rsi, rax
jbe 0x1400e6187
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov r15, rax
test r12, r12
je 0x1400e6174
movzx eax, word [r12]
mov word [r15], ax
mov edx, 2
mov rcx, r12
call fcn.140247060
mov r12, r15
mov qword [rsp + 0x50], r15
mov rax, rsi
mov qword [rsp + 0x58], rax
xor r15d, r15d
test rbx, rbx
je 0x1400e61a5
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, ebx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [r12 + rbx*2], r15w
mov qword [rsp + 0x60], rbx
jmp 0x1400e61b6
mov word [r12], r15w
mov eax, 0x100
mov ecx, 0x800100
cmp dword [r14 + 0x58], 0
cmovne eax, ecx
mov r13, qword [rsp + 0x1f8]
lea rcx, [0x1402b49d8]
lea rdx, [0x1402b49e8]
test r13, r13
cmovne rdx, rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, r12
mov rcx, qword [r14 + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x1d8], rax
test rax, rax
je 0x1400e663f
cmp dword [r14 + 0x58], 0
je 0x1400e6241
mov dword [rsp + 0x1f8], 0x3300
mov r9d, 4
lea r8, [rsp + 0x1f8]
lea edx, [r9 + 0x1b]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov esi, r15d
mov rcx, 0xffffffffffffffff
test r13, r13
je 0x1400e62ed
mov rsi, rcx
nop word [rax + rax]
inc rsi
cmp byte [rsi + r13], 0
jne 0x1400e6260
cmp qword [r14 + 0x38], 0
jne 0x1400e62f8
cmp qword [r14 + 0x30], 0x31
jae 0x1400e62bd
mov ecx, PathResolve
call fcn.140247068
mov rbx, rax
mov rdx, qword [r14 + 0x28]
test rdx, rdx
je 0x1400e62af
mov r8, qword [r14 + 0x38]
inc r8
mov rcx, rax
call fcn.1402496a0
mov edx, 1
mov rcx, qword [r14 + 0x28]
call fcn.140247060
mov qword [r14 + 0x28], rbx
mov qword [r14 + 0x30], PathResolve
jmp 0x1400e62c1
mov rbx, qword [r14 + 0x28]
mov byte [rbx], 0
mov r9d, PathResolve
lea r8, str.Content_Type:_application_x_www_form_urlencoded_n
mov rdx, qword [r14 + 0x30]
mov rcx, qword [r14 + 0x28]
call fcn.140250550
mov qword [r14 + 0x38], PathResolve
mov rcx, 0xffffffffffffffff
cmp qword [r14 + 0x38], 0
je 0x1400e6408
mov rbp, qword [r14 + 0x28]
mov rax, r15
mov rbx, r15
test rbp, rbp
je 0x1400e631b
mov rdi, rcx
nop word [rax + rax]
inc rdi
cmp byte [rdi + rbp], 0
jne 0x1400e6310
jmp 0x1400e631d
xor edi, edi
lea r12, [rdi + 1]
test r12, r12
je 0x1400e6340
mov eax, 2
mul r12
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov r15, rax
mov rax, r12
test rbp, rbp
je 0x1400e63d1
mov rbx, rdi
mov rcx, 0xffffffffffffffff
cmp rdi, rcx
jne 0x1400e6369
mov rbx, rcx
nop dword [rax + rax]
inc rbx
cmp byte [rbx + rbp], 0
jne 0x1400e6360
lea rdi, [rbx + 1]
cmp rdi, rax
jbe 0x1400e63aa
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov r12, rax
test r15, r15
je 0x1400e63a4
movzx eax, word [r15]
mov word [r12], ax
mov edx, 2
mov rcx, r15
call fcn.140247060
mov r15, r12
mov rax, rdi
test rbx, rbx
je 0x1400e63c8
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov word [r15 + rbx*2], ax
jmp 0x1400e63d7
xor eax, eax
mov word [r15], ax
mov r9d, 0x20000000
mov r8d, ebx
mov rdx, r15
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edx, 2
mov rcx, r15
call fcn.140247060
mov ebp, dword [rsp + 0x1d0]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9, r13
xor r8d, r8d
xor edx, edx
mov r13, qword [rsp + 0x1d8]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400e6446
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ebp, eax
mov dword [rsp + 0x1d0], eax
cmp dword [rsp + 0x1e0], 0
je 0x1400e6631
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x71]
call fcn.140249b10
mov dword [rsp + 0x1d8], 0x104
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 0x20000005
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rcx, qword [r14 + 0x18]
mov r12d, dword [rsp + 0x70]
test rcx, rcx
je 0x1400e64ce
mov rax, qword [rcx]
mov r9d, r12d
xor r8d, r8d
xor edx, edx
call qword [rax]
mov ebp, eax
mov dword [rsp + 0x1d0], eax
test eax, eax
jne 0x1400e64ce
mov dword [r14 + 0x40], 2
mov rdi, r15
mov ebx, r15d
mov esi, r15d
mov ecx, dword [rsp + 0x1e0]
lea eax, [rcx - 1]
cmp eax, 0xfffffffd
ja 0x1400e64f6
call fcn.140247068
mov rdi, rax
mov r15d, dword [rsp + 0x1e0]
test ebp, ebp
je 0x1400e65c4
nop
lea rdx, [rsp + 0x1f8]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400e65c4
mov r8d, dword [rsp + 0x1f8]
test r8d, r8d
je 0x1400e65c4
add ebx, r8d
cmp ebx, r15d
jbe 0x1400e6571
mov ecx, ebx
call fcn.140247068
mov rbp, rax
mov r15d, ebx
test rdi, rdi
je 0x1400e655f
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call fcn.1402496a0
mov edx, 1
mov rcx, rdi
call fcn.140247060
mov rdi, rbp
mov r8d, dword [rsp + 0x1f8]
mov ebp, dword [rsp + 0x1d0]
mov edx, esi
add rdx, rdi
lea r9, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400e65c4
add esi, dword [rsp + 0x40]
mov ebx, esi
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x1400e6500
mov rax, qword [rcx]
mov r9d, r12d
mov r8d, esi
mov edx, 1
call qword [rax]
mov ebp, eax
mov dword [rsp + 0x1d0], eax
test eax, eax
jne 0x1400e6500
mov dword [r14 + 0x40], 2
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x1400e65eb
mov rax, qword [rcx]
mov r9d, r12d
mov r8d, ebx
mov edx, 2
call qword [rax]
mov ebp, eax
test eax, eax
jne 0x1400e65eb
mov dword [r14 + 0x40], 2
test rdi, rdi
je 0x1400e6631
test ebp, ebp
je 0x1400e660f
test ebx, ebx
je 0x1400e660f
mov rax, qword [rsp + 0x1e8]
mov qword [rax], rdi
mov rax, qword [rsp + 0x1f0]
mov dword [rax], ebx
jmp 0x1400e6631
mov rax, qword [rsp + 0x1e8]
xor ecx, ecx
mov qword [rax], rcx
mov rax, qword [rsp + 0x1f0]
mov dword [rax], ecx
lea edx, [rcx + 1]
mov rcx, rdi
call fcn.140247060
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r12, qword [rsp + 0x50]
mov edx, 2
mov rcx, r12
call fcn.140247060
mov eax, ebp
add rsp, 0x188
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret