Function at 0x14000a66c
Capabilities:
Delete file
Get common file path
Send http response
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400c1ed0]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
xor ebx, ebx
mov r13, r8
mov r14, rdx
mov r12, rcx
or rdi, 0xffffffffffffffff
mov esi, ebx
mov dword [rbp + 0x1b0], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x14000a6e6
lea rcx, str.Insufficient_resources__n
lea ebx, [rdi + 9]
call fcn.1400486bc
jmp 0x14000a99f
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x238
call fcn.140049ef0
lea rax, [0x1400a1440]
xor r8d, r8d
test byte [r14], 1
mov dword [rsp + 0x78], 0x200c8
mov qword [rbp - 0x80], rax
je 0x14000a925
lea r9, [rbp + 0x1d0]
lea rdx, [0x1400a1518]
lea rcx, [0x1400a1520]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14000a74b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetTempFileName_failed_with__lu__n
mov ebx, eax
jmp 0x14000a968
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0x1d0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a795
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cannot_create_temporary_file._Error__lu__n
mov ebx, eax
jmp 0x14000a968
mov dword [rbp + 0x1b0], ebx
mov qword [rsp + 0x30], rbx
jmp 0x14000a7d7
mov r8d, dword [rbp + 0x1b0]
test r8d, r8d
je 0x14000a7ca
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x1b8]
mov rdx, r15
mov rcx, rdi
add esi, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
and dword [rbp + 0x1b0], 0
and qword [rsp + 0x30], 0
mov rdx, qword [r14 + 0x10]
lea rax, [rbp + 0x1b0]
mov r9, r15
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x20], 0x800
call qword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
mov ebx, eax
test eax, eax
je 0x14000a7a2
cmp eax, 0x26
je 0x14000a817
mov edx, eax
lea rcx, str.HttpReceiveRequestEntityBody_failed_with__lu__n
jmp 0x14000a96a
mov r8d, dword [rbp + 0x1b0]
test r8d, r8d
je 0x14000a83f
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x1b8]
mov rdx, r15
mov rcx, rdi
add esi, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, [0x1400a15d4]
lea rcx, [rbp + 0x1c0]
mov r9d, esi
mov edx, ntohl
call fcn.140048698
lea rax, [rbp + 0x1c0]
mov dword [r13], esi
or r13, 0xffffffffffffffff
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x1c0]
mov rax, r13
xor esi, esi
inc rax
cmp byte [rcx + rax], sil
jne 0x14000a879
mov rdx, qword [r14 + 0x10]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov word [rbp + 0x58], ax
lea rax, [rbp + 0x1b4]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov r8d, 2
mov rcx, r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
mov ebx, eax
test eax, eax
jne 0x14000a961
mov rdx, qword [r14 + 0x10]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea r9d, [rax + 1]
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rdi
call qword [sym.imp.HTTPAPI.dll_HttpSendResponseEntityBody]
mov ebx, eax
test eax, eax
je 0x14000a96f
lea rcx, str.HttpSendResponseEntityBody_failed__lu_n
jmp 0x14000a968
mov rdx, qword [r14 + 0x10]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
lea rax, [rbp + 0x1b4]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
mov ebx, eax
test eax, eax
je 0x14000a96f
lea rcx, str.HttpSendHttpResponse_failed_with__lu__n
mov edx, eax
call fcn.1400486bc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rdi, 0xffffffffffffffff
je 0x14000a99f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140046830
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret